Topic: 菜鸟提问? (illegal character: \12288)

  Print this page

1.菜鸟提问? (illegal character: \12288) Copy to clipboard
Posted by: wwjxxy
Posted on: 2004-09-08 13:40

---------- javac ----------
chaxun.java:58: illegal character: \12288
  StringBuffer sb = new StringBuffer();
^
chaxun.java:58: illegal character: \12288
  StringBuffer sb = new StringBuffer();
^
chaxun.java:60: illegal character: \12288
  byte bt[] = str.getBytes();
^
chaxun.java:60: illegal character: \12288
  byte bt[] = str.getBytes();
^
chaxun.java:62: illegal character: \12288
  for(int i =0 ;i〈bt.length;i++)
^
chaxun.java:62: illegal character: \12288
  for(int i =0 ;i〈bt.length;i++)
^
chaxun.java:62: illegal character: \12296
  for(int i =0 ;i〈bt.length;i++)
^
chaxun.java:65: illegal character: \12288
  if(bt[i]〈0)
^
chaxun.java:65: illegal character: \12288
  if(bt[i]〈0)
^
chaxun.java:65: illegal character: \12296
  if(bt[i]〈0)
^
chaxun.java:69: illegal character: \12288
  //是汉字去高位1
^
chaxun.java:69: illegal character: \12288
  //是汉字去高位1
^
chaxun.java:71: illegal character: \12288
  sb.append((char)(bt[i]&&0x7f));
^
chaxun.java:71: illegal character: \12288
  sb.append((char)(bt[i]&&0x7f));
^
chaxun.java:76: illegal character: \12288
  sb.append((char)0);
^
chaxun.java:76: illegal character: \12288
  sb.append((char)0);
^
chaxun.java:78: illegal character: \12288
  sb.append((char)bt[i]);
^
chaxun.java:78: illegal character: \12288
  sb.append((char)bt[i]);
^
chaxun.java:80: illegal character: \12288
   }
^
chaxun.java:80: illegal character: \12288
   }
^
chaxun.java:91: illegal character: \12288
   byte[] bt = str.getBytes();
^
chaxun.java:91: illegal character: \12288
   byte[] bt = str.getBytes();
^
chaxun.java:93: illegal character: \12288
   int i,l=0,length = bt.length,j=0;
^
chaxun.java:93: illegal character: \12288
   int i,l=0,length = bt.length,j=0;
^
chaxun.java:95: illegal character: \12288
   for(i = 0;i〈length;i++)
^
chaxun.java:95: illegal character: \12288
   for(i = 0;i〈length;i++)
^
chaxun.java:95: illegal character: \12296
   for(i = 0;i〈length;i++)
^
chaxun.java:98: illegal character: \12288
   if(bt[i] == 0)
^
chaxun.java:98: illegal character: \12288
   if(bt[i] == 0)
^
chaxun.java:101: illegal character: \12288
   l++;
^
chaxun.java:101: illegal character: \12288
   l++;
^
chaxun.java:103: illegal character: \12288
  }
^
chaxun.java:103: illegal character: \12288
  }
^
chaxun.java:105: illegal character: \12288
  }
^
chaxun.java:105: illegal character: \12288
  }
^
chaxun.java:107: illegal character: \12288
   byte []bt2 = new byte[length-l];
^
chaxun.java:107: illegal character: \12288
   byte []bt2 = new byte[length-l];
^
chaxun.java:109: illegal character: \12288
   for(i =0 ;i〈length;i++)
^
chaxun.java:109: illegal character: \12288
   for(i =0 ;i〈length;i++)
^
chaxun.java:109: illegal character: \12296
   for(i =0 ;i〈length;i++)
^
chaxun.java:112: illegal character: \12288
   if(bt[i] == 0)
^
chaxun.java:112: illegal character: \12288
   if(bt[i] == 0)
^
chaxun.java:115: illegal character: \12288
   i++;
^
chaxun.java:115: illegal character: \12288
   i++;
^
chaxun.java:117: illegal character: \12288
   bt2[j] = bt[i];
^
chaxun.java:117: illegal character: \12288
   bt2[j] = bt[i];
^
chaxun.java:119: illegal character: \12288
   }else
^
chaxun.java:119: illegal character: \12288
   }else
^
chaxun.java:122: illegal character: \12288
   bt2[j] = (byte)(bt[i]|0x80);
^
chaxun.java:122: illegal character: \12288
   bt2[j] = (byte)(bt[i]|0x80);
^
chaxun.java:124: illegal character: \12288
   }
^
chaxun.java:124: illegal character: \12288
   }
^
chaxun.java:126: illegal character: \12288
   j++;
^
chaxun.java:126: illegal character: \12288
   j++;
^
chaxun.java:128: illegal character: \12288
   }
^
chaxun.java:128: illegal character: \12288
   }
^
chaxun.java:130: illegal character: \12288
  String tt = new String(bt2);
^
chaxun.java:130: illegal character: \12288
  String tt = new String(bt2);
^
chaxun.java:132: illegal character: \12288
  return tt;
^
chaxun.java:132: illegal character: \12288
  return tt;
^
chaxun.java:8: package java.awt.Applet does not exist
import java.awt.Applet.*;
^
61 errors

帮帮我,
输出完成 (耗时 3 秒) - 正常终止

2.Re:菜鸟提问? (illegal character: \12288) [Re: wwjxxy] Copy to clipboard
Posted by: why
Posted on: 2004-09-08 13:54

是不是用了全形空白(还是全角空白)?

12288 is "ideographic space" (from http://www.w3.org/TR/REC-CSS2/syndata.html )


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923