Reputation: 250
I am having a challenge implementing BiDi characters as the arabic characters are shifted to different positions during construction of an object key.
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
Upvotes: 1
Views: 148
Reputation: 57173
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.
Upvotes: 1