[英]Convert ASCII sign into a string
That is not ASCII, that is an Unicode character. 不是ASCII,而是Unicode字符。 The range of ASCII characters stops at Unicode code point 127 decimal.
ASCII字符的范围停止在Unicode代码点127小数点处。
To have it in a string literal, use its Unicode code point MSDN: Old C# Language Specification: 2.4.1 Unicode character escape sequences : 要将其包含在字符串文字中,请使用其Unicode代码点MSDN:旧C#语言规范:2.4.1 Unicode字符转义序列 :
string crown = "\u2655"
As @jt000 mentioned in their now-removed answer, you do need a font that can render this glyph. 正如@ jt000在他们现在删除的答案中提到的那样,您确实需要一种可以呈现此字形的字体。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.