I need some help with a problem I have and hopefully it can be resolved.
I am aware about the problem with Turkish-characters (see
Internationalizing Turkish: Dotted and Dotless Turkish Letter "I")
My problem is probably due to what mentioned in above link.
I am parsing an XML-file and at a certain point, I get an error as follows:
The full error message is as follows:
Unfortunately I cannot say beforehand the characters included in the XML-file. My app is used all over the world but this is the first time I got a report about this issue and in fact it was from Turkish users. I think this error could also happen with certain characters of the Lithuanian and Armenian alfabet.
Now, I am actually reading this file using httputils since I read it from a network-device using a specific API. However, in order to produce an example (see attachment) so I can demostrate the problem, I did a test-program where I am reading the XML-file locally but the error is the same.
Is it possible to resolve this issue?
I haven't tried but perhaps in the parser-sub I could use a Try and Catch and on error I can continue with next record but this does not actually resolve the problem. I would prefer to get it to work they way it should and to show respect to my Turkish users.
Hope someone can help me to resolve this problem so I can read these characters properly. Thanks.
I am aware about the problem with Turkish-characters (see
Internationalizing Turkish: Dotted and Dotless Turkish Letter "I")
My problem is probably due to what mentioned in above link.
I am parsing an XML-file and at a certain point, I get an error as follows:
org.apache.harmony.xml.ExpatParser$ParseException: At line 273, column 102: not well-formed (invalid token)
The full error message is as follows:
org.apache.harmony.xml.ExpatParser$ParseException: At line 273, column 102: not well-formed (invalid token)
at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:515)
at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:474)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:321)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)
at anywheresoftware.b4a.objects.SaxParser.parse(SaxParser.java:78)
at anywheresoftware.b4a.objects.SaxParser.Parse(SaxParser.java:71)
at anywheresoftware.b4a.samples.xmlsax.main._activity_create(main.java:244)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at anywheresoftware.b4a.samples.xmlsax.main.afterFirstLayout(main.java:89)
at anywheresoftware.b4a.samples.xmlsax.main.access$100(main.java:16)
at anywheresoftware.b4a.samples.xmlsax.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4898)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
at dalvik.system.NativeStart.main(Native Method)
org.apache.harmony.xml.ExpatParser$ParseException: At line 273, column 102: not well-formed (invalid token)
Unfortunately I cannot say beforehand the characters included in the XML-file. My app is used all over the world but this is the first time I got a report about this issue and in fact it was from Turkish users. I think this error could also happen with certain characters of the Lithuanian and Armenian alfabet.
Now, I am actually reading this file using httputils since I read it from a network-device using a specific API. However, in order to produce an example (see attachment) so I can demostrate the problem, I did a test-program where I am reading the XML-file locally but the error is the same.
Is it possible to resolve this issue?
I haven't tried but perhaps in the parser-sub I could use a Try and Catch and on error I can continue with next record but this does not actually resolve the problem. I would prefer to get it to work they way it should and to show respect to my Turkish users.
Hope someone can help me to resolve this problem so I can read these characters properly. Thanks.