Can base64 encoding applied to multibyte utf-8 characters ? How base64 encoded string is converted back to multibyte utf-8 string ?
+2
A:
base64 is applied to bytes, not characters. It's up to your application to convert your strings, utf8 or not, to their bytes representation.
wRAR
2010-04-06 18:02:15
Does it mean that after base64 decoding we will get a byte array back and that can be further converted to utf-8 character set ?
cppdev
2010-04-06 18:10:09
b64 encoding takes a byte array. b64 decoding returns a byte array. That's simple.
wRAR
2010-04-06 18:16:37
Are you aware of any methods that take input as a byte array and return utf8 string ?
cppdev
2010-04-06 18:29:49
Yes, but I'm not sure they are for a language you use.
wRAR
2010-04-06 18:43:12
+1
A:
base64 does not care. You can use base64 encode and then decode to get back where you were.
zaf
2010-04-06 18:04:24