Skip to main content
Participating Frequently
January 8, 2010
Question

substr appear to not work correctly when string is bidi

  • January 8, 2010
  • 1 reply
  • 375 views

i´m trying to do string.substr(0, n) on a mixed/bidi string of text, looks like it gets confused on where to start from, any ideas about that?

This topic has been closed for replies.

1 reply

Adobe Employee
January 8, 2010

The String class doesn't do anything special for bidi -- it treats the String as an array of Unicode characters, and applies operations based on the characters logical order, not the visual order they would appear up on the screen.