Skip to content

请教中文问题 #1

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

Open
acetao opened this issue Sep 21, 2015 · 1 comment
Open

请教中文问题 #1

acetao opened this issue Sep 21, 2015 · 1 comment

Comments

@acetao
Copy link

acetao commented Sep 21, 2015

程序输出中有中文文字,在用Java提交代码时,势必在Java代码中就会有中文,但是判题时出现编译错误,例如:
error: unmappable character for encoding ASCII
System.out.println("???????????????Java??????");
看了FAQ中的Java的编译选项:javac -J-Xms32m -J-Xmx256m Main.java
如果要将javac的 -encoding <编码>选项打开,请问需要修改哪个文件?
另:Ubuntun用的语言是中文,在Ubuntu命令行下用javac 编译有中文字符的代码不会有问题,但是OJ就有问题。
谢谢!

@whuangxm
Copy link

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

No branches or pull requests

2 participants