Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can base64 encoding applied to multibyte utf-8 characters?

Tags:

utf-8

base64

Can base64 encoding applied to multibyte utf-8 characters ? How base64 encoded string is converted back to multibyte utf-8 string ?

like image 576
cppdev Avatar asked Nov 23 '25 12:11

cppdev


2 Answers

base64 is applied to bytes, not characters. It's up to your application to convert your strings, utf8 or not, to their bytes representation.

like image 65
wRAR Avatar answered Nov 28 '25 00:11

wRAR


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

like image 32
zaf Avatar answered Nov 27 '25 23:11

zaf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!