Subj : Re: String constants in file To : Jeroen de Borst From : Brendan Eich Date : Mon Mar 01 2004 12:32 pm Jeroen de Borst wrote: >Hi, > >I was just wondering what charset is assumed when JS_CompileScript and/or >JS_CompileFile are being invoked. >Are the bytes in a string constant just assumed to be UCS-2 values, like >when the charset is ISO-8859-1? Or does it depend on the locale? > They're chopped-down UTF-16 code points, which are the same as ISO-8859-1 code points. They're not in any locale-specific multibyte encoding -- this should be clear from looking at the code, js_InflateString in particular. /be .