Unicode characters in Tini v1.02f

"Kostas Bouzianas" <kostasb-Jh9Dzy/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Hello everybody,
I'm trying to save a Unicode string in a Properties file

I use the following

String key="101"; //(existing key)
String result="\u0393\u0394\u0398\u039B";

Properties props=new Properties();
    try{
    FileInputStream fis=new FileInputStream(file);
    props.load(fis);
    fis.close();
    }
    catch(Exception e){
    System.out.println(e);
    }
    props.put(key,result);
    try{
    FileOutputStream fos=new FileOutputStream(file);
    props.save(fos,"");
    fos.close();
    }
    catch(Exception e){
    System.out.println(e);
    }

When i analyse the string written, i get
char1=147=0x93
char2=148=0x94
char3=152=0x98
char4=155=0x9B

Looks like only the low order byte of the unicode character written
Am i missing something?

Best Regards
Kostas


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.