> Open a Reader with the source encoding, read the whole file into a
> String or StringBuilder. Then, open a Writer with the target enocoding
> and write the string back.
Didn't do tha job. Id would be good if I converted between UTF-16 and
UTF-8, or anything else. Point is that ISO-8859-1 doesnt support that
chars i want in my files. Native2ascii conwerts them to unicode escape
chars.
ie. (hope servers don't mess it)
Source: alejezuzzy
native2ascii output: \u0163\u02d9 B j e z u z | y
HandConvertedOutput: ???je?uz?y
Soren Kuula - 24 Aug 2006 02:29 GMT
>>Open a Reader with the source encoding, read the whole file into a
>>String or StringBuilder. Then, open a Writer with the target enocoding
[quoted text clipped - 4 lines]
> chars i want in my files. Native2ascii conwerts them to unicode escape
> chars.
Aah, got it.
If it were me, I would probably just scan through the (properly decoded)
string for chars > 255, and replace then by the escaped value then...
the numerical value of the char is the value you want to print as hex .
with a & in front of it and a ; at the tail.
But OK, if you insist on the external program (after all it works),
sorry I don't know how to make it work reliably from Java.
Søren