DestroShark
Member
Hey
I faced such a problem, I will be glad to any advice or help, perhaps someone has already encountered such a problem. I store my data encoded as strings (locally and on a remote server, like base64). Now, when I receive a JSON file, I get an error because the string that I need to decode has too many characters as "", and the decoding turns out garbage that cannot be parsed in any way, what should I do in this case?
for example:
encoded output from server: akLlM81Fmc2Rnmc2Q
decoded this string: [{"key1":"value"}] etc.
On this moment i have error, because my decoding function return garbage because of this characters -> " "
Decoding sub works correctly
best regards
I faced such a problem, I will be glad to any advice or help, perhaps someone has already encountered such a problem. I store my data encoded as strings (locally and on a remote server, like base64). Now, when I receive a JSON file, I get an error because the string that I need to decode has too many characters as "", and the decoding turns out garbage that cannot be parsed in any way, what should I do in this case?
for example:
encoded output from server: akLlM81Fmc2Rnmc2Q
decoded this string: [{"key1":"value"}] etc.
On this moment i have error, because my decoding function return garbage because of this characters -> " "
Decoding sub works correctly
best regards