Encoding

Hi all

I have an Arabic app and it will read its data from xml file, but my problem is encoding. When it reads Arabic data, it displays them in the emulator and in my mobile as garbage. Although I set the encoding as:

<?xml version="1.0" encoding="UTF-8" ?>

So please, any suggestion will be so appreciated.

Many thanks

[406 byte] By [primrosea] at [2007-11-27 8:29:51]
# 1
Try to save XML file in Unicode.String <?xml version="1.0" encoding="UTF-8" ?> works only in internet browsers, because they can convert text from one encoding to another automatically.
mpx220a at 2007-7-12 20:20:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
did you use your arabic text in <i>PCDATA</i> tags?
suparenoa at 2007-7-12 20:20:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
thanks allI didn't use <i>PCDATA</i>, so how can I use it? can you give me an example, plz?thanks again
primrosea at 2007-7-12 20:20:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
yes I tried to save it as:unicode and utf-8 but still I have the same problem :(
primrosea at 2007-7-12 20:20:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

> thanks all

>

> I didn't use <i>PCDATA</i>, so how can I use it? can

> you give me an example, plz?

>

> thanks again

sorry it wasn't <i>PCDATA</i> but PCDATA (PCDATA in italic!!)

so you must learn XML and see how writing xml files...

and you will find what is PCDATA !

suparenoa at 2007-7-12 20:20:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...