A way to make jslibs read UTF-8 script files correctly.
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
Jslibs doesn't read scripts stored as UTF-8 correctly. For example, if you
store the following code in a UTF-8 text file and run it with jshost the
output will be "2" (=the number of bytes), which is incorrect:
LoadModule("jsstd");
Print("ö".length);
If you instead store it as UTF-16 the output will be "1" (=the number of
characters), which is correct.
I would like a command line option which lets you choose which encoding to
use: -encoding UTF-8
Original issue reported on code.google.com by osk...@gmail.com
on 24 Apr 2010 at 4:30
GoogleCodeExporter commented
Original comment by sou...@gmail.com
on 27 Apr 2010 at 9:17
- Changed state: Accepted
- Added labels: Priority-High
- Removed labels: Priority-Medium
GoogleCodeExporter commented
Now the script loader should detect the file encoding.
Feel free to reopen the issue if feature do not work properly.
Original comment by sou...@gmail.com
on 23 May 2011 at 9:46
- Changed state: Fixed