Re: Unicode characters in Tini v1.02f
"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <00b501c406d1$06e2b9b0$764000b4@kardis> |
> Looks like only the low order byte of the unicode character written > Am i missing something? No, this appears to be a bug in the current firmware revisions. This will be fixed for future releases. Kris ----- Original Message ----- From: "Kostas Bouzianas" <kostasb-Jh9Dzy/[email protected]> To: "Tini" <tini-6tN4nzCoH/[email protected]> Sent: Tuesday, March 09, 2004 10:34 AM Subject: [TINI]Unicode characters in Tini v1.02f > 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 > _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini