WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Problems with accents

[Resolved] Problems with accents

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AntoineH
    Participant

    @antoineh

    Where does this problem occur? With team names? If so, have you tried to change the team’s name on the Teams admin page?

    Can you give an example of a team name that is not working?

    A team must be active and a ‘real team’ to be displayed on the teams page. You can check these properties in the Teams admin page.

    angelpubli
    Member

    @angelpubli

    I can already see the teams page, thanks.

    About the accents, occurs in any name either team or stadium.

    angelpubli
    Member

    @angelpubli

    For example, stadium name “Benito Villamarín” see “Benito Villamarín”

    Ah, only in stadiums. Teams see good.

    Plugin Author AntoineH
    Participant

    @antoineh

    I found the problem: stadium name is html encoded via PHP’s htmlentities function. The function call does not specify an encoding and for PHP versions below 5.4 this does not default to ‘UTF-8’ (which it should be). I’ll fix it in the next version. Thanks for reporting this bug.

    A quick solution for you is to change the code (in file classes\class-football-pool-stadiums.php):

    htmlentities( $stadium->name )

    to

    htmlentities( $stadium->name, null, 'UTF-8' )

    b.t.w. this problem occurs every time the htmlentities function is used. So other places in the plugin are also affected. The second and third parameter are necessary in al those places.

    angelpubli
    Member

    @angelpubli

    Perfect, thank you very much.

    angelpubli
    Member

    @angelpubli

    Solved provisionally pending the next version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Problems with accents’ is closed to new replies.