How can I split foreign characters, such as Chinese, into separate array values using JavaScript?
split()
seems to work well with English, but not so much with Chinese. See below result of two strings
a) Hello There
b) 你好吗
splitString = text.split(" ");
RESULT: ["hello", "there"]
RESULT: ["你好吗"]