funny json character results

Discussion in 'iOS Programming' started by mlecho, Sep 5, 2009.

  1. mlecho macrumors newbie

    Mar 31, 2004
    i am working with JSON queries. i have a bunch of european names that are coming back to me in a format i do no know how to encode. For example the name: Sébastien looks like S\U00e9bastien. How can i encode the accents, etc from my JSON results?
  2. mlecho thread starter macrumors newbie

    Mar 31, 2004
    just to explore this more, do i need the opposite of stringByAddingPercentEscapesUsingEncoding and does that exist?

    ...reading the API now, but open to ideas
  3. ghayenga macrumors regular

    Jun 18, 2008
    You have to know what encoding the server sending you the JSON info is using. Then you set your resulting string to that encoding. If it's a windows server it may be NSISOLatin1StringEncoding for instance.

Share This Page