部落客廣告聯播
顯示具有
native2ascii
標籤的文章。
顯示所有文章
顯示具有
native2ascii
標籤的文章。
顯示所有文章
2010年6月28日 星期一
Native2Ascii 程式碼參考
許多framework會使用到.properties檔案來做為多國語言的訊息儲存格式,
而像是非英文語系的語言在存成.properties後還會需要使用JDK內帶的native2ascii.exe將
中文字轉換成unicode十六進位的編碼形式,在runtime時才能正確讀取。
今天心血來潮,想看看native2ascii的原始碼,在google code search找到了一個開源碼版本的JVM Kaffe的native2ascii原始碼可參考,而且程式碼比想像中的簡單與簡潔:
http://kaffe.org/cgi-bin/viewcvs.cgi/kaffe/tools/javatools/javalib/gnu/classpath/tools/native2ascii/Attic/Native2ASCII.java?view=markup
2009年5月10日 星期日
native2ascii與Eclipse --> PropertiesEditor
請參見:
http://tw.myblog.yahoo.com/eoda227/article?mid=224&prev=-1&next=220
2008年4月23日 星期三
Eclipse下的.properties文件plugin
PropertiesEditor plugin:
http://genghaixu.javaeye.com/blog/180032
除了有Editor之外還有show native2Ascii 後編碼結果文件的功能!
JDK Native2Ascii使用:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/native2ascii.html
另外還有一邊文章可參考:
Java property文件中文解决方案
較舊的文章
首頁
訂閱:
文章 (Atom)