Xcode encoding problem
in my macbook pro, when i first installed xcode 3.2.5 and built my application which parses some arabic text from a website, everything was fine, the arabic letters appeared fine in the simulator and in the debug window, then i installed xcode 4 and built my application and everything was just fine for several days, xcode crashed one time and now when i build and run my app the arabic text is not encoded properly, texts looks gibberish like this "استجواب الدويسان لوزير الإعلام غدا" then i thought it might be that xcode 4 is just crazy so i went back to xcode 3.2.5 and the texts are just crazy as xcode 4..
i haven't touched or changed any of the source code, so i thought this might be the problem with xcode caching the data the wrong way, so i searched for the cache files for xcode and deleted them, also deleted the build folder, cleaned, did "empty cache" from xcode and reinstalled xcode and the problem won't go away. I assure you the code is fine and uses the UTF8 encoding to parse the data. I am using TFHpple and XpathQuery to parse the texts.. and i havent even changed anything on the server side that might me affecting the parsing process..
BTW i am new to mac and i absolutely have no idea how its handling its http connect process.. i thought i might have pressed some crazy shortcut keys which triggered this mess.
i used to have it with my previous macbook air with xcode installed in it.. i thought its just that xcode is not supporting arabic, with my new mac at the beginning it turned out it does. but maybe for few days hehe
|