If someone comes by the same problem as me (converting string to 8-bit ascii codes), here is the solution:
Cp437 can be replaced by IBM437, but not by Windows-1252, Latin1, US-ASCII (this is 7-bit ascii) and ISO-8859-1.
My problem was that I was trying to use "ISO-8859-1" (being nice standards-compliant guy), "ISO_8859_1 ", "8859_1" and such, instead going immediately for the code page 437 (DOS-US, OEM-DOS).
I hope this will help someone.
Code:
String s="ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ";
byte ascii[]=s.getBytes("Cp437");
My problem was that I was trying to use "ISO-8859-1" (being nice standards-compliant guy), "ISO_8859_1 ", "8859_1" and such, instead going immediately for the code page 437 (DOS-US, OEM-DOS).
I hope this will help someone.
Comment