native2ascii -> same input -> different output!?

Hello all,

I have to convert this UTF-8-Property-String:

label_from=От

into "ISO 8859-1 with Unicode escapes" with native2ascii.

On my Linux-Machine (Java 5) I get:

label_from=\u041e\u0442

This is right and leads to a correct output :)

On a Windows-Machine (I unfortunately have to work with time by time) with Java 6 I get:

label_from=\u00d0\u017e\u00d1\u201a

This leads to a broken output :(

Can anybody tell me why this happens? Are there ways to make the Windows-machine behave like the Linux-machine (besides "format c:" and than install LInux...)?

Thanks a lot in Advance!

Best regards

Stephan

[696 byte] By [lotka] at [2007-11-27 9:44:05]
# 1
I think you need to specify the encoding: native2ascii -encoding UTF-8 <infile> <outfile> Otherwise, it treats <infile> as if it were in the system default encoding (which just happens to be UTF-8 on your Linux box).
uncle_alicea at 2007-7-12 23:50:22 > top of Java-index,Desktop,I18N...