tags:

views:

171

answers:

2

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
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
b64 encoding takes a byte array. b64 decoding returns a byte array. That's simple.
wRAR
Are you aware of any methods that take input as a byte array and return utf8 string ?
cppdev
Yes, but I'm not sure they are for a language you use.
wRAR
+1  A: 

base64 does not care. You can use base64 encode and then decode to get back where you were.

zaf