' UrlEncodeMap(input As Map) As String
' Converts a Map's keys/values to a URL encoded parameter string
' Following library is used
' B4J - jStringUtils
' B4A - StringUtils
' B4i - iStringUtils
Sub UrlEncodeMap(input As Map) As String
Dim sb As StringBuilder
Dim su As StringUtils...
sorry for my bad English.
I'm using OkHttputils2 to download a text file and read it. this file contains html code. I display this code in a webview.
it works well except for the characters "éèà% .."
is there a library to read this encoding correctly?
or how can I do it.
Im using that kind of sub with StringUtils and B4XCipher library to encode some passwords :
Sub EncryptText(text As String, password As String) As String
Dim c As B4XCipher
Dim su As StringUtils
Return su.EncodeBase64(c.Encrypt(text.GetBytes("utf8"), password))
I am retrieving quotes from an online API in JSON format. However, the some of the characters are like appearing strange when i used UTF8 character encoding with okhttputils download2 option. any help?
"quote": "If you can\u00e2\u20ac\u2122t resolve your problems in peace, you...