The nuances of base64 encoding strings in JavaScript
https://web.dev/articles/base64-encoding
https://web.dev/articles/base64-encoding?hl=ja
btoa() と atob()
ASCII 文字を含む文字列、または 1 バイトで表すことができる文字列でのみ機能します。つまり、Unicode では機能しません。
積ん読