I have a Swedish word Pågår in my string XML file. When I try to read this word form the string resources it only shows P g r with å character missing in the output. Why is this happening and how can I solve this? Please help me in solving this error.
I have a Swedish word Pågår in my string XML file. When I try
Share
You can (should) escape special letters with the utf-8 representation for it.
Both
\u00e5andåwould work for “å” in Android.As requested, an example of localized fonts according to link.
To use localized Fonts, you can put the special fonts in assets and name it something like “
se-font.ttf“In your strings.xml for the Swedish language you add a value:
Then, in your app, when you load the font, you create the asset filename like so:
Then you should be able to load your font using the
fontassetfilename