NSXMLParser, Issue with ASCII Character Set

Posted by Ansari on Stack Overflow See other posts from Stack Overflow or by Ansari
Published on 2010-04-30T11:45:53Z Indexed on 2010/04/30 11:57 UTC
Read the original article Hit count: 378

Filed under:
|
|
|
|

Hi all

 <Feeds>
<channel>
    <ctitle>YouTube</ctitle>
    <cdescription>YouTube - Recently added videos</cdescription>
    <items>
        <recentlyAdded>        <item>
    <serverItemId>1</serverItemId>
       <title>Fan Video CARS</title>
       <author>mikar1</author>
       <guid isPermaLink='false'></guid>
       <link>http://www.youtube.com/watch?v=y7ssHOBFvGk&amp;feature=youtube_gdata</link>
       <pubDate></pubDate>
       <description>

            <descriptionTitle>Fan Video CARS</descriptionTitle>
            <descriptionText>THE REALSONG OF THIS VIDEOS IS REAL GONE, BUT FOR COPYRIGHTS RASONS.....YOUTUBE FORCE ME A CHANGE THE SONG :s Un pequeño video, de la pelicula Cars!</descriptionText>
            <added></added>
            <airDate></airDate>
                <duration></duration>                
                <Views></Views>
                <ratings>4.340909</ratings>
                <From></From>
            </description>
            <thumbnail>
                <height>100</height>
                <width>100</width>
                <url>http://i.ytimg.com/vi/y7ssHOBFvGk/2.jpg</url>
            </thumbnail>                
       </item>

    </recentlyAdded>
    </items>
</channel>

I am using NSXMLParser, and when it reaches the it blows up. It breaks the text to pieces "THE REALSONG OF THIS VIDEOS IS REAL GONE, BUT FOR COPYRIGHTS RASONS.....YOUTUBE FORCE ME A CHANGE THE SONG :s Un peque" And next should be "ño" but it just quit the parsing there and further tags are being handled. :(

It always does with the ISO 8859 1 Character cames in )

Any quick idea ???

Thanks in Advance ..........

© Stack Overflow or respective owner

Related posts about iphone

Related posts about Xml