The javascript interpreter in vortex seems to mess up when a multi-byte charset is used for the javascript source.
For example, "'¦'.length" if encoded in ISO-8859-1 returns 1, but if encoded in UTF-8 - returns 2.
Setting the charsetsrc (and even charsettxt) appropriately doesn't help.
If a web server sends UTF-8 encoded JS how do I make that JS run correctly? Converting the JS code to ISO-8859-1 is not an option as the code contains string literals that cannot be represented in 8859-1. Converting to UTF-16 didn't help, either (it actually made things worse - as vortex didn't seem to find the <script> block at all - possibly because of the UTF-16 encoding of the tags).
Any advice?
Texis version: 5.01.1258488718 20091117 (i686-intel-winnt-64-32)
For example, "'¦'.length" if encoded in ISO-8859-1 returns 1, but if encoded in UTF-8 - returns 2.
Setting the charsetsrc (and even charsettxt) appropriately doesn't help.
If a web server sends UTF-8 encoded JS how do I make that JS run correctly? Converting the JS code to ISO-8859-1 is not an option as the code contains string literals that cannot be represented in 8859-1. Converting to UTF-16 didn't help, either (it actually made things worse - as vortex didn't seem to find the <script> block at all - possibly because of the UTF-16 encoding of the tags).
Any advice?
Texis version: 5.01.1258488718 20091117 (i686-intel-winnt-64-32)