using System.Collections; using System.Collections.Generic; using UnityEngine; public class CsharpEncoding : MonoBehaviour { void Start() { string allName = ""; foreach (System.Text.EncodingInfo encodeing in System.Text.Encoding.GetEncodings()) allName = string.Format("{0}\n{1}", allName, encodeing.Name); Debug.Log(allName); } }
IBM037 |
ibm861 |
shift_jis |
IBM01144 |
Windows-1252 |
IBM437 |
DOS-862 |
gb2312 |
IBM01145 |
windows-1253 |
IBM500 |
IBM863 |
ks_c_5601-1987 |
IBM01146 |
windows-1254 |
ASMO-708 |
IBM864 |
big5 |
IBM01147 |
windows-1255 |
ibm850 |
IBM865 |
IBM1026 |
IBM01148 |
windows-1256 |
ibm852 |
cp866 |
IBM01047 |
IBM01149 |
windows-1257 |
IBM855 |
ibm869 |
IBM01140 |
utf-16 |
windows-1258 |
ibm857 |
IBM870 |
IBM01141 |
utf-16BE |
macintosh |
IBM00858 |
windows-874 |
IBM01142 |
windows-1250 |
x-mac-icelandic |
IBM860 |
cp875 |
IBM01143 |
windows-1251 |
utf-32 |
utf-32BE |
IBM420 |
iso-8859-5 |
euc-jp |
x-iscii-ma |
us-ascii |
IBM424 |
iso-8859-6 |
euc-kr |
x-iscii-gu |
IBM273 |
koi8-r |
iso-8859-7 |
GB18030 |
x-iscii-pa |
IBM277 |
IBM871 |
iso-8859-8 |
x-iscii-de |
utf-7 |
IBM278 |
cp1025 |
iso-8859-9 |
x-iscii-be |
utf-8 |
IBM280 |
koi8-u |
iso-8859-15 |
x-iscii-ta |
|
IBM284 |
iso-8859-1 |
iso-8859-8-i |
x-iscii-te |
|
IBM285 |
iso-8859-2 |
iso-2022-jp |
x-iscii-as |
|
IBM290 |
iso-8859-3 |
csISO2022JP |
x-iscii-or |
|
IBM297 |
iso-8859-4 |
iso-2022-jp |
x-iscii-ka |
转换方式
System.Text.Encoding.GetEncoding("big5").GetString(System.Text.Encoding.Default.GetBytes(cmd))
文章评论