且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 PowerShell 字符串文字中编码 32 位 Unicode 字符?

更新时间:2022-11-09 17:07:01

假设 PowerShell 使用 UTF-16,32 位代码点表示为 代理人.例如,U+10000 表示为:

Assuming PowerShell uses UTF-16, 32-bit code points are represented as surrogates. For example, U+10000 is represented as:

0xD100 0xDC00

即两个16位字符;十六进制 D100 和 DC00.

That is, two 16-bit chars; hex D100 and DC00.

祝你找到带有代理字符的字体.

Good luck finding a font with surrogate chars.