I edit in notepad cfg.prop file
cfg.prop:
key=val
my code:
Properties prop = new Properties();
prop.load(new InputStreamReader(new FileInputStream("etc/agent.prop"), "UTF-8"));
System.out.println(prop);
then I see in stdout {?key=val}, becose notepad save UTF-8 file with BOM character (efbbbf) how to ignore this character? I use java6u21