Android Question [Solved] Accented characters with XOM Library

asales

Expert
Licensed User
Longtime User
I use the XOM Library to import a xml file to database.

This is how I initialize the library:

B4X:
Dim XOMBuilder1 As XOMBuilder
XOMBuilder1.Initialize("XOMBuilder1")
Dim XmlString As String = File.GetText(File.DirAssets, "myfile.xml")
XOMBuilder1.BuildFromString(XmlString, "", Null)

The import of data is ok, but this code is incompatible with accented characters in file.

How can I fix it?

Thanks in advance.
 

asales

Expert
Licensed User
Longtime User
Thanks Erel.
I found the problem.
In Sax library I used the encoding = "iso-8859-1" and in XOM Library I need change to "UTF-8".
 
Upvote 0
Top