我無法找到適合此API的API。我試過了;在特定範圍內打印所有Unicode字符
public static void main(String[] args) {
for (int i = 2309; i < 3000; i++) {
String hex = Integer.toHexString(i);
System.out.println(hex + " = " + (char) i);
}
}
此代碼僅在Eclipse IDE中打印。
905 = ?
906 = ?
907 = ?
...
我怎樣才能讓我們這些十進制和十六進制值,以獲得Unicode字符?
愚蠢的錯誤!我沒有將它保存爲UTF-8格式。現在它正在工作。 – Mawia 2013-04-22 07:32:48