我一直在尝试将推特嵌入代码编码到base64中,其中可能包含也可能不包含一个或多个表情符号。因此,当字符串中有表情符号时,我会得到这样的错误:Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range. 有没有什么我可以做的,当我在字符串上运行btoa()时,它会对包括表情符号在内的整个字符串进行编码,当我在php中使用base64_decode解码它时,