• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question about Arabic character

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey all,

our site need to suppot multiple language including Arabic. we save the value to database and write it to XML file both using UTF-8 encoding. As known, the habit of arabic is from right to left. We can retrieve the value from database and use CSS style "direction:rtl" to show it in correct order on the HTML page.
But the xml file is used for showing in flash which does not support "direction:rtl". We have to alter the sequence of the value before written to the XML file.

Eg: we input "اثممخ hello ميحث baby يمشم" in the textbox and will be shown as "يمشم baby ميحث hello اثممخ".
In the XML, we want to write the value with latter text not former.

Could you help me for solving this issue or providing any advices ?
Thanks in advance.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know about arabic characters, but I often use multiple UTF-8 charaters, so I've decided to test something:



shows "يمشم baby ميحث hello اثممخ"

So if you are using Java to write the xml, you could use a regex to split the String (like whitespace "\s") .
 
Gary Jiao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply.

The sample shown in my question is only a simple one. Actually, the situation is more complex and like this:
ض hello baby 98 789 نن حح ةةةةة123 42sdf يمسن afdس kjhشkشششةةةةdش567 123 k hello world ااااا ننننن

We could not split it with whitespace simply.
Thanks.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic