> * On Notepad++ went to the Encoding menu and selected "Encoding in UTF-8
> w/o BOM". Saved the file. When running "lein run" on the cmd.exe console it
> works but it outputs garbage instead of any non-ascii character (see
> http://i.imgur.com/H0rngyq.png)
>

This is as expected.
Garbage characters are output because *out* is bound to the platform
default encoding.  The platform default encoding will never be UTF-8 on
Windows - it is likely to be something like Windows-1252, which is
incapable of encoding those characters.

* To trigger the compilation error, change the encoding of the file in
> Notepad++ to "Encoding in UTF-8". Save the file. When running "lein run"
> this time it will not compile and complains about being unable to resolve a
> symbol (see http://i.imgur.com/3SHegTH.png) ... however, if you type the
> contents of the file in the cmd.exe console (with "type
> src\utf8test\core.clj") you'll see there's some extra garbage chars before
> the namespace declaration.
>

This is because the BOM is not a valid character in the Clojure syntax.
Perhaps it would be a reasonable enhancement for Clojure to treat the BOM
as whitespace.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to