In ccsid 437 the charater \u00B5 ('µ') is not mapped correctly by AS400Text.
When I do a round trip mapping with ccsid 437 (String -> AS400Text ->byte[] -> AS400Text -> String) the µ caracter goes amiss. It is part of the Cp437 though.
Peer
Please provide more details. Do you have a sample program?
You are kidding me, right?
import com.ibm.as400.access.AS400Text; public class Test { public static void main(String[] args) { String s1 = "\u00B5"; System.out.println(s1); AS400Text txt = new AS400Text(1, 437); byte[] b = txt.toBytes(s1); String s2 = (String) txt.toObject(b); System.out.println(s2); } }
Log in to post a comment.
Please provide more details. Do you have a sample program?
You are kidding me, right?
import com.ibm.as400.access.AS400Text;
public class Test {
public static void main(String[] args) {
String s1 = "\u00B5";
System.out.println(s1);
AS400Text txt = new AS400Text(1, 437);
byte[] b = txt.toBytes(s1);
String s2 = (String) txt.toObject(b);
System.out.println(s2);
}
}