About the "JS string type implementation", I have read at js/src/jsstr.h that
"A JS string is a counted array of unicode characters". According to the
ECMA-262 specification, the Unicode character encoding must be UTF-16.
our application. What character encoding is our SpiderMonkey using?.
That is the function stack we get across the SpiderMonkey source code. At the
end we get a "text/html; charset=iso-8859-1" string. I would like to know why
that iso-8859-1 charset is set:
The JS_GetStringBytes function returns the string
Where does SpiderMonkey set that value?.
From where does it get the "text/html" part, and from where does it get the
"charset=iso-8859-1" path?. Does it get from the default system locale and
encoding?. Is the JSContext or the JSRuntime related to it?.
Note that the application which has the SpiderMonkey embedded does not use the
setlocale() function, so I think the POSIX locale is the default.
What SpiderMonkey's functions manage the decoding and encoding of JS Strings
to others character encodings?.