I have different result while decoding base_64 string with PHP or B4A.
Source string (inside question marks) is "gaCpU6ikVpqqsqGmcg=="
With PHP base64_decode() function I get this " ©S¨¤Všª²¡¦r"
And with B4A code
i get this result "���S��V�����r"
I suspect that there is some difference in Charsets. Is it?
How to make B4A result compatible with PHP result?
Source string (inside question marks) is "gaCpU6ikVpqqsqGmcg=="
With PHP base64_decode() function I get this " ©S¨¤Všª²¡¦r"
And with B4A code
B4X:
sData="gaCpU6ikVpqqsqGmcg=="
Dim su As StringUtils
Dim b() As Byte = su.DecodeBase64(sData)
sData = BytesToString(b, 0, b.Length, "UTF8")
Log("Base_64 decoded: " & sData)
i get this result "���S��V�����r"
I suspect that there is some difference in Charsets. Is it?
How to make B4A result compatible with PHP result?