1. abbas abedi

    Android Question How Can I Decompress brotli content encoding

    hi How Can I Decompress brotli content encoding this is my Answer headers content-type: application/json vary: Accept-Encoding vary: Accept-Encoding vary: Origin grpcgateway-content-type: application/grpc access-control-allow-origin: https://divar.ir access-control-allow-credentials: true...
  2. Dave O

    Android Question safely reading text files that may not be UTF8?

    Is there a recommended way of detecting/reading non-UTF8 text files? One of my apps lets users import CSV files. Recently a German user reported that the import wasn't working, and we think we've narrowed it to the file encoding. Encoding: He's saving his CSV file in "normal" encoding for...
  3. Ferdari

    Java Question SOLVED Passing String to lib saves with bad characters

    If i pass a string to my library it encodes some characters bad: mylib.SaveStringToJson("https://play.google.com/store/apps/details?id=com.app") This function saves a JSON file for library internal management, but inside some characters are changed like this...
  4. OliverA

    Android Code Snippet [B4X] UrlEncodeMap

    ' 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...
  5. chris_selkis

    Android Question to read html with okhttputils 2 - character encoding

    Hello, 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. thank you

    Android Question EncodeBase64 for URL and Files

    Hello, 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)) End Sub Sub...
  7. mcqueccu

    Android Question Help with Character Encoding

    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? SAMPLE "quote": "If you can\u00e2\u20ac\u2122t resolve your problems in peace, you...