kripken/emscripten — pull request #402 by puzzlet (2012-04-19 14:51:20+00:00)
Title: intArrayFromString to handle non-ascii string (in the page's own encoding)

This encodes the input strings of intArrayFromString to the page's own encoding, making the string a string of bytes.

I'm using it when I'm testing eSpeak to synthesize Korean texts https://github.com/puzzlet/espeak-korean/blob/js/Makefile#L48 http://puzzlet.github.com/espeak-korean/

The side effect: handling of strings with higher bytes (like "hyvää hyvää") may change - but since the most of webpages around are in Unicode, the applications need to handle Unicode, and if the original source in C/C++ properly handles Unicode, the compiled program should do too.