G
Guest
Hi everybody,
I've got a web application where I need to join several strings, some of
which are read from a dbase and display then IN the order they are joined.
I.E. I want to display "Hello {USERNAME}, How are you doing?" ({USERNAME} is
read from dbase).
Now the problem is that the strings around the {USERNAME} should be in hebrew,
and the USERNAME can be either hebrew or english or mixed.
Because of the BIDI algorithm if the string contains hebrew and english
chars it might not display as required.
I've tried various methods to solve this and eventually I found a method
that works
by inserting Unicode control chars between the joined strings (LRE & PDF,and
Zero-Width-Space).
The resulting strings look right in windows applications but when I try to
use them in a web page there is an extra space.
Apparently IExplore show the Zero-Width-Space as a normal space.
Does anybody know how to make IExplore not show the zero-width-space?
Or another way to make sure the joined strings are displayed correctly
regardless of the direction of the chars in the strings.
Thanks
Nadav
PS. I put the zero-width-space because I found (by experimenting) that for
some reason if you put a LRE code right after a PDF code it does NOT work.
So I add a zero-width-space between them.
I've got a web application where I need to join several strings, some of
which are read from a dbase and display then IN the order they are joined.
I.E. I want to display "Hello {USERNAME}, How are you doing?" ({USERNAME} is
read from dbase).
Now the problem is that the strings around the {USERNAME} should be in hebrew,
and the USERNAME can be either hebrew or english or mixed.
Because of the BIDI algorithm if the string contains hebrew and english
chars it might not display as required.
I've tried various methods to solve this and eventually I found a method
that works
by inserting Unicode control chars between the joined strings (LRE & PDF,and
Zero-Width-Space).
The resulting strings look right in windows applications but when I try to
use them in a web page there is an extra space.
Apparently IExplore show the Zero-Width-Space as a normal space.
Does anybody know how to make IExplore not show the zero-width-space?
Or another way to make sure the joined strings are displayed correctly
regardless of the direction of the chars in the strings.
Thanks
Nadav
PS. I put the zero-width-space because I found (by experimenting) that for
some reason if you put a LRE code right after a PDF code it does NOT work.
So I add a zero-width-space between them.