neb1
neb1

Reputation: 209

Display R-T-L Language (Hebrew) Reversed

I have xml file with results.

In this file i have an element that consists of a string phone number like this: xxxxx 053 333333333, but it's displayed in the application like xxxxx 333333333 053.

Why does this happen? It seems that when parsing, the parser relates this sentence like it is write in english and not hebrew.

This happens in Nokia and BlackBerry. I'm using lwuit.

My conclusion is that it occurs because of lwuit (?)

Upvotes: 2

Views: 191

Answers (1)

G B
G B

Reputation: 3024

I also had some problems with bidirectional text rendering. A good explanation is here: http://www.iamcal.com/understanding-bidirectional-text/

My solution was to use explicit markers LRE, RLE and PDF when I know that a sentence is written in a particular language.

Upvotes: 2

Related Questions