Android and Special Chars?

by SteleFreak » Mon, 23 Mar 2009 06:19:08 GMT

Sponsored Links
 I created small rss reader application using DocumentBuilder class.
Everything works fine, but when Title and/or Description elements of
specific feed contains char  " , it cuts off all text after that char.


if original text is -> This is "text"
then i get this    -> This is "

I have checked parser inside standard Java console application and in
it, everything works fine with the text under quotation (e.g. "Example
text"). What could be the problem? I put Title text inside a ListView
and description text inside TextView and it somehow cuts off text
after " !?

Please help, this is almost impossible to debug... :(

Android and Special Chars?

by Mark Murphy » Mon, 23 Mar 2009 06:28:25 GMT


It splits them over multiple text and entity nodes. Iterate over all the
nodes and concatenate the results.

Mark Murphy (a Commons Guy) 
Android App Developer Books: 


Sponsored Links

Android and Special Chars?

by SteleFreak » Tue, 24 Mar 2009 21:18:47 GMT

 No. The problem occurs only in android app, while storage mechanism
and parser work perfectly in console app! I don't know what could be
the problem...I store each item element (rss2.0) - title, description
and link in a simple pojo class and then I take each of those pojo
objects and store their titles in listview and descriptions in
textviews. ... And there happens the problem with quotation
marks...very very strange...


Android and Special Chars?

by Mark Murphy » Tue, 24 Mar 2009 21:20:02 GMT


The parser behaves differently on Android.

Mark Murphy (a Commons Guy) 
Warescription: Three Android Books, Plus Updates, $35/Year


Android and Special Chars?

by SteleFreak » Tue, 24 Mar 2009 21:45:40 GMT

 Thanks. I ll try to figure it out how to fix it.


Other Threads

1. My adb/ddma can not find ViewPad7 device


I installed Android SDK r9 & it's driver in my Windows.
And also turn on the USB debug mode.

But my adb/ddms can not find my ViewPad7 device.
I tried to connect another Android phone is ok.

How do I fix it??



2. Updating Description and Screenshots in Marketplace

Can the screenshots and description of a published app be updated
without doing an upgrade?  I'd like to replace my screenshot with a
better one and fix a typo in the description.  Is it possible or do I
need to publish an upgrade to my app?

Jake Colman -- Android Tinkerer


3. How to disable Audio Feature in Android /How to build one mininum Android

4. How to disable Audio Feature in Android / How to build one mininum Android

5. OpenGL ES 2.0 for Live Wallpapers

6. How to rotate?

7. Zygote process is restarting?