Error when counting length of string when text is Japanese

jimmyellingerjimmyellinger Member Posts: 13
edited July 2014 in Tech Support

I have encountered an error (a niche error?) that occurs if I have a string made of Japanese text. If I use the textLength() or textFind() functions on a piece of text, it generates a value that is 3 times the length, i.e. textLength("こんにちは") will return the value 15.

I attached two example files for examination.

https://dl.dropboxusercontent.com/u/8873215/japanese_text_length_error.zip

https://dl.dropboxusercontent.com/u/8873215/text_find_count_error.zip

The workaround I came up with are as follows:

for textLength(): returnedValue/3.

for findText() is: (returnedValue+2)/3

Sign In or Register to comment.