I'm a newbie in Java so please bear with me if this is a very easy problem. I have a JUnit Test where I have a hardcoded Japanese word assigned directly to a string variable. Now right after that string is assigned, it turns to "??" meaning that the encoding is incorrect somewhere.
public class TestTest extends TestCase {
public void testLocal(){
Locale.setDefault(Locale.JAPAN);//same problem with or without this line
String test = "会社";
//after this line, by watching at the debugger, the variable "test" contains "??"
assertEquals("会社", test);
}
}
Because this is a testcase, I believe it completely isolates the problem from other UI environments. Please help me in this. Been 2 days with no solution. Thank you in advance.