SMOOTSARA Active Member Licensed User Longtime User Apr 2, 2020 #1 Hey guys I am sending a request to the host but I get anonymous characters! The answer is a (TEXT.HTML) that is displayed well in (Google Chrome browser) but in B4J after save in text file get anonymous characters.
Hey guys I am sending a request to the host but I get anonymous characters! The answer is a (TEXT.HTML) that is displayed well in (Google Chrome browser) but in B4J after save in text file get anonymous characters.
DonManfred Expert Licensed User Longtime User Apr 2, 2020 #2 arastoo said: I am sending a request to the host but I get anonymous characters! Click to expand... Most probably the website is not utf8 encoded. Update the html site to support utf8 Upvote 0
arastoo said: I am sending a request to the host but I get anonymous characters! Click to expand... Most probably the website is not utf8 encoded. Update the html site to support utf8
SMOOTSARA Active Member Licensed User Longtime User Apr 2, 2020 #3 Response We have to use the following method GetString2("windows-1256") Good luck B4X: Copy Wait For (job1) JobDone(j As HttpJob) If j.Success Then Log(j.GetString2("windows-1256")) Dim veeee As WebView veeee.Initialize("") veeee.LoadHtml(j.GetString2("windows-1256")) Activity.AddView(veeee,0,0,100%x,100%y) End If j.Release Upvote 0
Response We have to use the following method GetString2("windows-1256") Good luck B4X: Copy Wait For (job1) JobDone(j As HttpJob) If j.Success Then Log(j.GetString2("windows-1256")) Dim veeee As WebView veeee.Initialize("") veeee.LoadHtml(j.GetString2("windows-1256")) Activity.AddView(veeee,0,0,100%x,100%y) End If j.Release