Subj : Support of UTF-16 charset in Rhino To : netscape.public.mozilla.jseng From : nkesav Date : Fri Jul 01 2005 12:33 pm Hi.. Does anyone know what charset is supported by Rhino?? I am using Context.evaluatingString(..) API and passing UTF-16 data as javascript source. The engine throws a illegal character error. Should we pre-process the hi-bytes and just send single byte character data? SyntaxError: illegal character (script_utf16.js; line 1)^M at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)^M at org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStream.java:1323)^M at org.mozilla.javascript.TokenStream.getToken(TokenStream.java:1301)^M at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1082)^M at org.mozilla.javascript.Parser.mulExpr(Parser.java:1069)^M at org.mozilla.javascript.Parser.addExpr(Parser.java:1045)^M at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1032)^M at org.mozilla.javascript.Parser.relExpr(Parser.java:1015)^M at org.mozilla.javascript.Parser.eqExpr(Parser.java:1002)^M at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:991)^M at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:980)^M at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:969)^M at org.mozilla.javascript.Parser.andExpr(Parser.java:957)^M at org.mozilla.javascript.Parser.orExpr(Parser.java:945)^M at org.mozilla.javascript.Parser.condExpr(Parser.java:928)^M at org.mozilla.javascript.Parser.assignExpr(Parser.java:909)^M at org.mozilla.javascript.Parser.expr(Parser.java:898)^M at org.mozilla.javascript.Parser.statementHelper(Parser.java:791)^M at org.mozilla.javascript.Parser.statement(Parser.java:387)^M at org.mozilla.javascript.Parser.parse(Parser.java:128)^M at org.mozilla.javascript.Context.compile(Context.java:2053)^M .