Issue with char display

Discussion in 'PHP' started by brok3n, Nov 3, 2007.

  1. #1
    Hi, I am using the GameQ PHP library to query Counter Strike Source servers.

    I get a list of players online, but ones using non-standard characters aren't displayed properly.

    Eg:

    I get this in-game and from game-monitor:
    [Đ]Griffø[Δ]

    And using GameQ:
    [Đ]Griffø[Δ]

    Can someone please explain what is wrong (am I using the wrong character set, can I just convert them to the correct one?)

    Thanks.
     
    brok3n, Nov 3, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Try setting your page's charset to UTF-8.
     
    nico_swd, Nov 3, 2007 IP
  3. brok3n

    brok3n Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    Worked perfect. Thank you very much, rep added.
     
    brok3n, Nov 3, 2007 IP