More info Men's --- < ' " & > --- info < & > working properly
&apos " disappeared On Wed, Dec 24, 2008 at 3:25 PM, Evgeny V <evgen...@gmail.com> wrote: > It's not related to <string-array> resource only. > Same behavior is when I have read from resource <string>. > > On Wed, Dec 24, 2008 at 3:04 PM, Mark Murphy <mmur...@commonsware.com>wrote: > >> >> EvgenyV wrote: >> > Some question regarding apostrophe as part of string-array items. >> > >> > I have string array defined as following: >> > >> > <?xml version="1.0" encoding="utf-8"?> >> > <resources> >> > <string-array name="my_arry"> >> > <item>Men's info</item> >> > <item>Dummy info</item> >> > </string-array> >> > </resources> >> > >> > In code I'm getting the values into string array >> > String my_array[] = this.getResources().getStringArray >> > (R.array.my_array_id); >> > String myFirstString = my_array[0]; >> > >> > The displayed myFirstString is - "Mens info" without apostrophe. >> > >> > I changed it to following using ascii code >> > <string-array name="my_arry"> >> > <item>Men's info</item> >> > <item>Dummy info</item> >> > </string-array> >> > >> > Same result. >> >> Have you tried ' instead? >> >> >> http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com >> _The Busy Coder's Guide to Android Development_ Version 1.9 Available! >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---