B4J Question Show characters in the B4J

SMOOTSARA

Active Member
Licensed User
Longtime User
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.

1585838568021.png
 
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
Back
Top