看板 AndroidDev 關於我們 聯絡資訊
tericky:為什麼回應字串要轉編碼兩次??? 01/16 21:48
tericky:既然已經知道source是big5,要轉成UTF-8,直接 01/16 21:49
tericky:strRet = new String( 01/16 21:51
tericky: EntityUtils.toString(response.getEntity()) 01/16 21:52
tericky: .getBytes("ISO-8859-1"), "UTF-8") 01/16 21:52
tericky:至於>、<、&這種特殊符號,除了tag以外,都要自己轉換格式 01/16 21:54
我用上面的寫法但是有些字元會是亂碼,顯示成"?" 例如千年國=>千 國 請問有比較好的解法嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.147.141.118