I was only just reading something the other day that said javascript handles Unicode in a funny way. After reading your question, it seems that it's likely that your system is set to English locale. When you then try to show javascript alert messages, you just get boxes. This is the same behaviour reported by readers of Japanese when attempted on a system set to English locale.
From a couple of forum messages I've read, this behaviour is a common flaw.
One poster
suggested[
^] that the way around it was to use pop-up html dialogs that emulate the look and feel of an alert box. This will allow you to show a message in any language on a system that's set to any locale.
EDIT: (using chrome) Just tried to run the javascript on a Win7 pc - the alert message is the same as the text shown on this page. I saved the file using Notepad, using "Unicode" as the Encoding type. - same result when saving it as UTF-8 too.. :Hmmmmm:
EDIT #2: Using IE8 - worked fine too.
Now, when I try it in a virtual machine loaded with XP, I note something interesting happens - the code (and page title) display as boxes in both IE6 & Chrome 19.
But, it gets better - if I view the source in both IE6 & Chrome, then I
DO see the text as displayed on this page. in Chrome, but still see boxes when viewed in IE6. :wtf:
Fun times!
See
here[
^] for an example.