A
Andrew Poulos
I've written some javascript for a client that uses some in-house tool
to create HTML. They are upgrading their tool so that it handles unicode
(so they can, for example, insert Japanese ideograms directly into the
HTML).
The pages display in IE 7 but Firefox, Chrome etc complain about an
illegal character and then
Error: uncaught exception: [Exception... "Component returned failure
code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMLocation.replace]"
nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
file:///C:/Users/Andrew/Desktop/Project/Standalone/content/index.htm ::
anonymous :: line 44" data: no]
and no javascript runs.
When I build the pages from scratch they display.
When I examine their pages they are encoded in UTF-16 with Unix style
line ending.
I manually changed the encoding to UTF-8 but it made no difference.
If I comment out the javascript the page displays fine.
I'm kind of lost with unicode. Is their something I can tell their
developers to stop them killing my javascript?
Andrew Poulos
to create HTML. They are upgrading their tool so that it handles unicode
(so they can, for example, insert Japanese ideograms directly into the
HTML).
The pages display in IE 7 but Firefox, Chrome etc complain about an
illegal character and then
Error: uncaught exception: [Exception... "Component returned failure
code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMLocation.replace]"
nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
file:///C:/Users/Andrew/Desktop/Project/Standalone/content/index.htm ::
anonymous :: line 44" data: no]
and no javascript runs.
When I build the pages from scratch they display.
When I examine their pages they are encoded in UTF-16 with Unix style
line ending.
I manually changed the encoding to UTF-8 but it made no difference.
If I comment out the javascript the page displays fine.
I'm kind of lost with unicode. Is their something I can tell their
developers to stop them killing my javascript?
Andrew Poulos