Subj : Re: About Unicode To : netscape.public.mozilla.jseng From : Jun Kim Date : Tue Nov 23 2004 01:24 am Well, first of all, thank you, Jens, for the reply. Yes, it is example shell included in spidermonkey. And I have read the references you recommended. But I still have no clue... :( Do you mean that in order to get the result I expect, should I use JS_CompileUCScript() instead of JS_CompileScript()? Well, I did try and failed. Since JS_CompileUCScript() functions gets jschar instead of char, I did some conversion, char -> JSString -> jschar, and passed it to JS_CompileUCScript() as such... newStr = JS_NewString(cx, buffer, strlen(buffer)); unichar = JS_GetStringChars(newStr); script = JS_CompileUCScript(cx, obj, unichar, ....); But I still get the same wrong result. I'm not so familiar with js engine, so could you help me... maybe right down to the coding level.. :) Sincerely, Jun .