what is the encode for the Arabic

farisnt

Member
Licensed User
Longtime User
I made a small chat program
The Code that recive the data is
B4X:
Sub tcpStreams_NewData (Buffer() As Byte)
   Dim msg As String 
   msg=BytesToString(Buffer,0,Buffer.Length ,"UTF-8")
   ListNum=ListNum+1
   'Main.chatview.AddSingleLine (msg)
End Sub

I guess that the problem is with UTF-8
but what is the correct encode

:sign0013:
 

KZero

Active Member
Licensed User
Longtime User
if the other Client uses Unicode then UTF8 should show Arabic perfectly

you can try "windows-1256" instead
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…