SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Now available in Orange Tijmen's Avatar
    Join Date
    Jul 2004
    Location
    The Netherlands
    Posts
    1,472
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unicode problem with names

    I'm working on a plugin where you can select your location on Google maps. I found that in for example Greece you can have names like this 'Megalópolis'. The problem is that it becomes this in the database -> Megalu00f3polis. After some searching on Google it seems to be a unicode issue? I found several solutions that should have fixed the problem, but it doesn't

    I tried to change the database field from utf8_general_ci to utf8_unicode_ci, and comment the DB_COLLATE and DB_CHARSET lines in the wp-config.php. But none of them seems to have any effect.

    Does anyone have any ideas how to fix this?
    Travel Photos on Flickr - Twitter

    “Never give up. Never surrender”

  2. #2
    Founder of Primal Skill Ltd. feketegy's Avatar
    Join Date
    Aug 2006
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure your theme supports UTF-8. You can add the following meta tag to your header.php (above the /head tag), see if it helps:

    HTML Code:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  3. #3
    Now available in Orange Tijmen's Avatar
    Join Date
    Jul 2004
    Location
    The Netherlands
    Posts
    1,472
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's already set at UTF-8. I start to think that the only way to fix this is to convert Megalópolis into Megalopolis before storing it into the database, but I hope there is a better solution.
    Travel Photos on Flickr - Twitter

    “Never give up. Never surrender”


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •