I've been trying to read an mail that has been encoded i base64. When I read the mail with Thunderbird it reads the whole thing correctly. The mail contents ascii characters and chinese letters (unicode i guess). But when I try to read the whole mail the chinese letters are converted to ASCII character. I mean the ascii characters in the mail comes out correctly, but the chinese letters comes out as ascii letters?
I've been trying to compile the program in unicode, but this only shows chinese letters the whole way.
So I've been trying to examine the whole thing myself without any mail and all that. So I started to encode:
Code: Select all
Hello my name is 洒
Code: Select all
SGVsbG8gbXkgbmFtZSBpcyA/
Code: Select all
Hello my name is ?
This is the code that i compiled:
Code: Select all
out$ = Space(5000)
str$ = "SGVsbG8gbXkgbmFtZSBpcyA/"
Base64Decoder(@str$, StringByteLength(str$), @out$, 5000)
SetClipboardText(out$)