H hzq200409 Active Member Licensed User Oct 23, 2020 #1 Code :" HttpJob.getString2 ("ISO8859_1")" To get HTML with Chinese is a garbled code.Is this a BUG? ----------------------------------------------------------------- 代码:HttpJob.getString2 ("ISO8859_1")获取有中文的HTML是乱码.这是一个BUG吗? described below: The text returned by the server is shown in the attachment. Headers: HTTP/1.1 200 OK Set-Cookie: JSESSIONID=01994D5919AC649CB6B5D301708D96B1; Path=/ Content-Type: text/html;charset=ISO8859_1 Date: Wed, 21 Oct 2020 06:33:37 GMT Server: Apache-Coyote/1.1 Set-Cookie: SF_cookie_16=94240492; path=/ Content-Length: 20793 Attachments RawFile.txt RawFile.txt 20.3 KB · Views: 382
Code :" HttpJob.getString2 ("ISO8859_1")" To get HTML with Chinese is a garbled code.Is this a BUG? ----------------------------------------------------------------- 代码:HttpJob.getString2 ("ISO8859_1")获取有中文的HTML是乱码.这是一个BUG吗? described below: The text returned by the server is shown in the attachment. Headers: HTTP/1.1 200 OK Set-Cookie: JSESSIONID=01994D5919AC649CB6B5D301708D96B1; Path=/ Content-Type: text/html;charset=ISO8859_1 Date: Wed, 21 Oct 2020 06:33:37 GMT Server: Apache-Coyote/1.1 Set-Cookie: SF_cookie_16=94240492; path=/ Content-Length: 20793
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2020 #2 Unlikely to be a bug in OkHttpUtils2. My guess is that the problem is in the server. The encoding is probably different. Based on Notepad++ the encoding used in this file is GB2312. Upvote 0
Unlikely to be a bug in OkHttpUtils2. My guess is that the problem is in the server. The encoding is probably different. Based on Notepad++ the encoding used in this file is GB2312.
H hzq200409 Active Member Licensed User Oct 23, 2020 #4 I have transferred this document. It's HTML source code. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2020 #5 Moved to the questions forum. 1. Please don't ignore my answers. Try the encoding I posted above. 2. If it doesn't work then either post the link or upload the downloaded file. It is a bit easier to do with B4J. Upvote 0
Moved to the questions forum. 1. Please don't ignore my answers. Try the encoding I posted above. 2. If it doesn't work then either post the link or upload the downloaded file. It is a bit easier to do with B4J.
drgottjr Expert Licensed User Longtime User Oct 23, 2020 #6 fyi Attachments capture.png 51.3 KB · Views: 525 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2020 #7 As expected it was a server problem. Upvote 0