Skip to content

Conversation

@jpalmucci
Copy link

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

@plexus
Copy link

plexus commented May 12, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants