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.

 

SMOOTSARA

Active Member
Licensed User
Longtime User
Response

We have to use the following method

GetString2("windows-1256")

Good luck


B4X:
    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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…