유로화 기호가 들어있는 특성 파일을 읽었습니다. 완전히 다른 것처럼 보이는 화면에 인쇄 할 때. 나는 소품 파일에서 문자열을 비교하고 equals 메서드를 사용하여 같은 텍스트로 다른 문자열을 선언함으로써 false가되었습니다 .Pls 누군가 나를 도울 수 있습니다.Euro 기호가 properites 파일에서 올바르게 표시되지 않음
properities file
your purchase order is €
string text="your purchase order is €";
on comparing the above strings it fails.
************************
public String getProperty(String arg0) {
Properties prop = new Properties();
InputStream input = null;
try {
input = new FileInputStream("C:/text.properties");
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
prop.load(input);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return prop.getProperty(arg0);
}
어떻게 표시 되나요? –
어디서 출력합니까? IDE 콘솔? 쉘? – ortis