WordPress.org

Ready to get started?Download WordPress

Forums

Football Pool
[resolved] Problems with accents (7 posts)

  1. angelpubli
    Member
    Posted 1 year ago #

    I have problems with accents. Can you help please.

    Another problem I have is that teams do not see on the teams page.

    Sorry for my English.

    Thank you.

    http://wordpress.org/extend/plugins/football-pool/

  2. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. angelpubli
    Member
    Posted 1 year ago #

    I can already see the teams page, thanks.

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

  4. angelpubli
    Member
    Posted 1 year ago #

    For example, stadium name "Benito Villamarín" see "Benito Villamarín"

    Ah, only in stadiums. Teams see good.

  5. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. angelpubli
    Member
    Posted 1 year ago #

    Perfect, thank you very much.

  7. angelpubli
    Member
    Posted 1 year ago #

    Solved provisionally pending the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags