Base64ing统一code字 [英] Base64ing Unicode characters

查看:119
本文介绍了Base64ing统一code字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以统一code 字符连接codeD和DE codeD与的Base64

Can Unicode characters be encoded and decoded with Base64?

我试图连接code中的字符串'الله',但是当我去codeD这一切我得到的是????。

I have attempted to encode the string 'الله', but when I decoded it all I got was '????'.

推荐答案

Base64编码转换的二进制的文本。如果你想文本转换为Base64格式,你需要将文本转换使用一些适当的编码,以二进制(例如UTF-8,UTF-16)第一位。

Base64 converts binary to text. If you want to convert text to a base64 format, you'll need to convert the text to binary using some appropriate encoding (e.g. UTF-8, UTF-16) first.

这篇关于Base64ing统一code字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆