Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse-string encoding issue #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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