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

Non-UTF-8 Encoding Issue #419

Open
zenner3000 opened this issue Apr 18, 2022 · 3 comments
Open

Non-UTF-8 Encoding Issue #419

zenner3000 opened this issue Apr 18, 2022 · 3 comments
Labels

Comments

@zenner3000
Copy link

zenner3000 commented Apr 18, 2022

Hi.
This tool is super great !!!
I found a BUG. non-English words like Chinese,Japanese...etc in the class file shows messy code.
After I compile it using Kratau Bytecode editor, exported as zip or jar file .
Then using JD-GUI or others check it out, that Non-English words in that compiled file, show you messy code.
There are problems with the export process.
Sorry for my English! Hope you can understand.

@Konloch Konloch added the Bug label Apr 20, 2022
@Konloch
Copy link
Owner

Konloch commented Apr 20, 2022

Hi! Thank you for this report! I will look into this and see what solutions I can come up with. I'm thinking it's todo with non-ascii characters but I'm not sure exactly where in the process that would be failing

@zenner3000
Copy link
Author

Yes ,that's about non-ascii characters .

@lovelyjuice
Copy link

I tried to modify and compile a utf-8 encoding file contains Chinese character. Bytecode-viewer uses javac to compile it, but the default encoding of Windows is GBK when system region is Chinese, so the javac command failed to execute.

I don't know how to pass the arg -Dfile.encoding=UTF-8 to javac, but I found another solution, is that setting the value of the environment variable JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF-8

@Konloch Konloch changed the title This is a bug what I found. Non-UTF-8 Encoding Issue Jul 23, 2024
@Konloch Konloch pinned this issue Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants