|Jul 18, 2010, 07:30 PM||#1|
Problem with TouchXML and UTF-8
I'm trying to get RSS data from a 3rd party website.
The header of the feed is:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- generator="FeedCreator 1.7.2" --> <rss version="2.0">
My log shows the message "Input is not proper UTF-8, indicate encoding".
Is there a workaround for it, as I cannot change the header of the RSS feed?
Thanks in advance
Edit: Found it, I've should have used 'NSISOLatin1StringEncoding' for the encoding option. It works now.
Last edited by dutchchilly; Jul 18, 2010 at 08:32 PM.
|Jul 24, 2010, 08:43 AM||#2|
I am having the same issue.
How exactly and where did you set NSISOLatin1StringEncoding option???
|Jul 27, 2010, 04:15 AM||#6|
I also had the same problem and here's how i solve it : first convert data to string, then using the string to build the CXMLDocument.
// assume 'data' is what you get from the web service NSString *s = [[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease]; CXMLDocument *document = [[[CXMLDocument alloc] initWithXMLString:s options:0 error:error] autorelease];
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Mac awk can't process UTF-16 file||mikezang||OS X||1||Jul 10, 2014 05:13 PM|
|GoodPlayer Problem - Never mind. Problem solved.||BasicGreatGuy||iPad Apps||0||Mar 14, 2014 01:18 PM|
|iTunes DRM problem? Or, HD Versions of Movie on ATV1 Problem?||Aqueous||Apple TV and Home Theater||5||Feb 9, 2014 07:54 AM|
|MacBook Pro Problem! Booting up problem!||Legolasas||MacBook Pro||2||Jan 21, 2013 09:54 AM|
All times are GMT -5. The time now is 05:21 AM.