WordPress.org

Ready to get started?Download WordPress

Forums

LeagueManager
[resolved] German special characters (4 posts)

  1. blueteck
    Member
    Posted 2 months ago #

    Hi,
    i am writing an extension for your Leaguemanager, to update the Scores from an external Website. Everthing is working fine, just the german special character make some problems.

    Example:

    $lma = new LeagueManagerAdminPanel();
    $lma->setLeagueID( 4 );
    $lma->league = $lma->getLeague( $lma->getLeagueID() );
    $lma->setSeason( 2014 );
    echo '<br> TeamID of Eckernförder MTV Pirates I: ' . $lma->getTeamID( 'Eckernförder MTV Pirates I' );
    echo '<br> TeamID of Hamburg Sharks I: ' . $lma->getTeamID( 'Hamburg Sharks I' );

    The result is the following:
    TeamID of Eckernförder MTV Pirates I:
    TeamID of Hamburg Sharks I: 51

    So the german umlaut isnt working.
    Your method $leaguemanageradmin->addTeam adds the team correct with the ö. In the database it is stored as Eckernförder MTV Pirates I. But the getTeamID doesnt return any id.

    Any ideas or suggestions, maybe I cant see my mistake, thanks, Timo.

    https://wordpress.org/plugins/leaguemanager/

  2. blueteck
    Member
    Posted 2 months ago #

    it might be an other mistake, some "umalauts" are working

  3. Briesmi
    Member
    Posted 2 months ago #

    Benutze die Umlaute in html code, das sollte funktionieren, z.b.

    ö= &ouml;
    ü= &uuml;

    `

    u.s.w.

  4. blueteck
    Member
    Posted 2 months ago #

    it was a trailing space at the league website, that i wanted to import...

Reply

You must log in to post.

About this Plugin

About this Topic