Richard Young wrote:
> I'm loading a HTML page with my Javascript function defined in a
> <script> area.

If it's an inline script (i.e. not pointed to by the src attribute), the bytes 
will be treated as being in the encoding of the HTML page and converted to 
UCS-2 
before being passed to the JS engine.

What's the encoding of the HTML page?

> Calling JS_GetStringBytes to get the bytes from my JSString* doesn't
> work either since it seems to simply cast each UINT16 to a CHAR, and I
> get the same results.

Right, since you're using the browser, which does ISO-8859-1 char* stuff in JS.

-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to