Possible Duplicate:
Javascript: Unicode string split by chars
I have a javascript string which contains some tamil characters. I need to split them into individual unicode characters. The split method does not understand the http://en.wikipedia.org/wiki/Complex_text_layout Complex text layout.
For example:
Calling split("") on "கதிரவன்" returns:
,க,த,ி,ர,வ,ன,்
when I expected:
க,தி,ர,வ,ன்
What should be done to split unicode characters from a string properly ?
Edit: I can navigate these letters just fine in the browser (chrome). I am trying to use this js in a chrome extension. So I am fine if there is a chrome-specific solution too.