awt swing 命令行中文乱码
用javac -encoding GBK name.java
java -Dencoding=GBK name
只能解决部分的程序的问题,还有的系统的默认编码是cp1251,球高手指导啊
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Chat_Send implements ActionListener {
public Chat_Send(ChatAWT chatAWT) {
// TODO Auto-generated constructor stub
}
@Override
public void actionPerformed(ActionEvent arg0) {
// TODO Auto-generated method stub
}
}
import java.awt.event.ActionEvent;源代码的编码呢?命令行与eclipse不用,同感。有更个具体的信息么?编程环境是eclipse?设置的代码编码是什么?出现乱码问题的源代码能上来么?我们编译一下试试top,top ,top,top
import java.awt.event.ActionListener;
public class Chat_eliminate implements ActionListener {
public Chat_eliminate(ChatAWT chatAWT) {
// TODO Auto-generated constructor stub
}
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
}