如何打印 UTF-16 表示形式为 feff2031 的字符?
当我尝试以下操作时,我得到“?”结果是:
String million = "\u2030";
我想要的字符是“每百万”。请参阅PER MILLE了解更多信息。
UTF-8 (hex) 0xE2 0x80 0xB0 (e280b0)
UTF-8 (binary) 11100010:10000000:10110000
UTF-16 (hex) 0x2030 (2030)
UTF-16 (decimal) 8240
UTF-32 (hex) 0x00002030 (2030)
UTF-32 (decimal) 8240
C/C++/Java source code "\u2030"
Python source code u"\u2030"
最佳答案
label1.Text = "\u2030";
这显示在我刚刚尝试过的 Windows 窗体中;
关于c# - 如何在 C# 中将 UTF-16 字符存储为字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8128233/