-
Notifications
You must be signed in to change notification settings - Fork 730
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
Can I set file encoding to GBK? #195
Comments
|
I print the available Charsets, it contains Big5, Big5 Big5-HKSCS, Big5-HKSCS EUC-JP, EUC-JP EUC-KR, EUC-KR GB18030, GB18030 GB2312, GB2312 GBK, GBK IBM-Thai, IBM-Thai IBM00858, IBM00858 IBM01140, IBM01140 ...... |
I'm more familiar with Japanese, so I tried SHIFT_JIS this way: $ java -Dfile.encoding=SHIFT_JIS -jar javacpp.jar LibraryName And it works just fine! |
My command is
Will your |
Not sure, we might have to set the MAVEN_OPTS or _JAVA_OPTIONS environment variable for that... |
I solve it by this:
|
Cool! Thanks for testing :) |
There is another problem. After I set file.encoding to GBK, another problem occurs. I meet this problem after you have fixed the
|
That sounds like an issue with the Java compiler? Make sure you don't force it to UTF-8 in your pom.xml file. |
I set
|
There are some warnings, but not fatal. They are Javadoc warnings.
|
That's Javadoc. Don't use UTF-8 with Javadoc either.
|
I don't think it is a good solution to set encoding along the tool chains. So, I convert the original header files from GBK to UTF-8, in order to avoid the encoding problem. |
In my case, the header files are encoded with GBK. As a result, the java files contain messy code.
I have tried -Dfile.encoding=GBK, but it does not work.
What shall I do?
The text was updated successfully, but these errors were encountered: