Skip to main content
Participating Frequently
Jan 8, 2010 6:22 AM UTC
Question

substr appear to not work correctly when string is bidi

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Adobe Employee
Jan 8, 2010 4:58 PM UTC

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.

Translate