Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jsnuff1

macrumors 6502a
Original poster
Oct 4, 2003
730
340
NY
Im playing around with googles translate API on the phone but for certain translations, it dosent seem like the string encoding is working properly.

For example when i send in "How is the weather today" and translate it in french I get back

Comment est le temps aujourd\u0026#39;hui

this "\u0026#39;" is supposed to be an apostrophe so the above response should look like this

Comment est le temps aujourd'hui

Why is this happening? Im encoding the response data received as an NSUTF8 encoded string.

Should I be using a different encoding?


Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.