Raviteja Avvari
Raviteja Avvari

Reputation: 250

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

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

Upvotes: 1

Views: 148

Answers (1)

Alex Cohn
Alex Cohn

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

Related Questions