|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|
|Problems with Rsync and iPhoto library||tommekevda||OS X||2||May 19, 2011 10:50 AM|
|problems with sharepoints and and external drive||Vending||Mac Basics and Help||0||Oct 18, 2007 11:03 PM|
|Odd problem with wifi and Edge - nevermind I see everyones having problems with EDGE||pkts||iPhone Tips, Help and Troubleshooting||8||Jul 2, 2007 05:12 PM|
|Problem with quicktime and audio with mpeg video||Arip||Mac Applications and Mac App Store||0||Mar 14, 2007 03:11 PM|
|A little problem with IE and 10.3.9 and a couple of questions||tonicardo||Mac Applications and Mac App Store||6||Nov 1, 2005 06:52 PM|
All times are GMT -5. The time now is 01:56 AM.