Discussion Board
-
kXML 中文的問題
2005-07-03, 06:08
#1
Registered User
上面那個講有關中文處理的貼子真是好文章。無奈才疏學淺,拿 kXML 搞中文還是有問題。
我拿 kXML 做一段測試程式,發現 wtk 2.2 同捆的
midp 2.0 Default color phone 可以正常,可是搬到 nokia 7650 就變成無字天書,誰能幫我看看啊?我用 Eclipse, 我把整個 project 都打包了。程式不長,我只想了解 kXML 的中文處理。
res 下面的都是 UTF-8.
http://m.urmms.com/nparse.zip 可以拿到“問題資料“
謝謝各位大俠。
-
Regular Contributor
首先7650不是MIDP2.0的机器,你在wtk2.2上测试,并不能代表7650可以通过。
另外,居我以前测试7650是不支持UTF8编码格式的,你的问题可能就出在代码中:parser.setInput(new InputStreamReader(file,"UTF-8"));
这句话上,在其他机器上测试看看,如6600。看其他机器是否正常。如果正常,那可能就是这个问题造成的了。
saltedfish
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules