GSON的扯淡之處

GSON默認是開啓html編碼的, 方法註釋是這麼寫的:

By default, Gson escapes HTML characters such as < > etc. Use this option to configure Gson to pass-through HTML characters as is.

Returns:
a reference to this GsonBuilder object to fulfill the "Builder" pattern
Since:
1.3
看起來很好, 可你爲什麼要把=號也編碼了????
http://xxxxx/jeeplus/device/face_image?userkey\u003d27
原來是:
http://xxxxx/jeeplus/device/face_image?userkey=31
坑你爹啊, 坑你爹一週啊!
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章