Wednesday, November 20, 2002 05:53 AM
Currently I do not have Windows machine at hand and cannot confirm the exact way of encoding as you refer to as ANSI, which must be specific to Windows platform.
It may be an idea to examine the properties of "ANSI" encoding by
byte b = [String].getBytes(); // supposing "ANSI" is default
method and compare with it the byte array obtained by
byte b0 = [String].getBytes("UTF8");
and find your own way of determining the encoding of a string.