I am developing an iPhone app in Xcode which brings data from the SQL database of a Hebrew-language web site. This database uses Windows-1255 encoding for all of its tables. When I pull data from this database to my app, it shows up as gibberish, so I think it’s not being translated from the Windows-1255 encoding to the UTF-8 encoding that I want to use for data in my app.
How can I convert the data to UTF-8 in Xcode? Can I add something to the query so that the database itself will send data already translated to UTF-8 instead of sending me data encoded in Windows-1255?
Try iconv PHP function. It always worked perfectly for me.