In BiDi implementation, Arabic characters are shifted to different positions during rendering

123 Views Asked by At

I am having a challenge implementing BiDi characters as the arabic characters are shifted to different positions during construction of an object key.

enter image description here

Could someone please help me understand the behavior and a solution

Because I use the similar kind of thing to modify the strings I get undesired affects

enter image description here

1

There are 1 best solutions below

2
On

The phenomenon you observe is 'presentation only'. The development tools that you use to debug your javascript, are not RTL-friendly. If you suspect something went wrong for a specific value which contains Arabic characters, you can copy the value to clipboard, and paste the result to some separate viewer, preferably one that allows you to control the direction, e.g. Windows Notepad.