clj-tagsoup icon indicating copy to clipboard operation
clj-tagsoup copied to clipboard

parse-string encoding issue

Open jpalmucci opened this issue 14 years ago • 1 comments

On osx, using the default encoding / decoding settings does not work. I've changed it to use utf-8.

jpalmucci avatar Nov 23 '11 18:11 jpalmucci

I ran into this as well (on Linux). The problem is the JVM doesn't default to UTF-8, you can check this on the REPL

(System/getProperty "file.encoding")
;;=> "ANSI_X3.4-1968"

The solution is to set the file.encoding property as the JVM starts.

java -Dfile.encoding=UTF-8 ....

For leiningen you can set :jvm-opts

https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L264-L265

plexus avatar May 12 '16 15:05 plexus