Chinese characters problem! ! ! Urgent! ! To the sub! ! ! ! !

Category: J2ME
 
qazxcvbnmklop
2013-08-20 08:23:19

Sponsored Links
try
{
byte bs [] = new byte [2000];
Class c = getClass ();
InputStream is = c.getResourceAsStream ("/ iso- 8859-1.txt ");
String tmp;
if (is! = null)
{
DataInputStream dis = new DataInputStream (is);
try
{
; dis.read (bs);
dis.close ();
}
; catch (Exception exception) {}
; tmp = new String (bs, "ISO8859_1");
My TEXT text format is UTF8

Sponsored Links

sn34416912
2013-08-20 08:42:54
/ / Convert Character Set
byte [] bErr = strExecutResult.getBytes ("ISO8859_1");
strExecutResult = new String (bErr, "GBK");
mefyl
2013-08-20 09:00:06
Upstairs, your code in the simulator shows the correct ah
I are garbled, I use wtk own (most ugly that ...)
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.