I'm sure someone else will come across this problem so I thought it a good idea to ask for some help.
Basically I'm loading an XML file into a sqlite database, and rendering the data as listviews. The issue is with character encoding, specifically apostrophes are being rendered as squares within the app.
Now I'm aware of the problem i.e. how the characters have been encoded , but I have checked/ verified the following:-
I'm assuming the problem is either with the sqllite database having the wrong character encoding set, or the xml it starts off with having the wrong encoding, but both are UTF-8 as far as I can tell.
Can anyone clarify what I need to do to fix this? Please excuse my ignorance and hope you can help!
Basically I'm loading an XML file into a sqlite database, and rendering the data as listviews. The issue is with character encoding, specifically apostrophes are being rendered as squares within the app.
Now I'm aware of the problem i.e. how the characters have been encoded , but I have checked/ verified the following:-
- the XML is encoded with utf-8 encoding
- sqllite is, as I understand it, utf-8 by default
- I've tried replacing the apostrophe character with html markup etc but this doesnt make any difference
I'm assuming the problem is either with the sqllite database having the wrong character encoding set, or the xml it starts off with having the wrong encoding, but both are UTF-8 as far as I can tell.
Can anyone clarify what I need to do to fix this? Please excuse my ignorance and hope you can help!