What type of character is this : 𝓙𝓮𝓼𝓼𝓲𝓬𝓪 and how to handle it in java

huangapple go评论41阅读模式
英文:

What type of character is this : 𝓙𝓮𝓼𝓼𝓲𝓬𝓪 and how to handle it in java

问题

我们想要发送电子邮件,其中客户姓名出现在第三方系统中。这些姓名偶尔包含非英语字符。例如:𝓙𝓮𝓼𝓼𝓲𝓬𝓪

我们使用Java将电子邮件请求体形成为XML。有人可以帮忙确定这是什么类型的字符,以及需要什么类型的编码来处理?如果使用StringEscapeUtils.escapeXml(string)方法,会导致请求XML无法解析。

英文:

We want to send emails where customer name appears from a third party system. Those names now & then contains non english character. For example : 𝓙𝓮𝓼𝓼𝓲𝓬𝓪

We form email request body in XML using java. Can someone please help what type of character is this and what type of encoding required to handle? If we use StringEscapeUtils.escapeXml(string) method that causes request xml to become not parsable.

答案1

得分: 1

以下是要翻译的内容:

这些是Unicode中定义的143,859个字符之一。

例如,𝓙 是一个"数学粗体大写字母j",16进制为0x1D4D9,10进制为120025,𝓙 是一个字符实体。

有关在Java中处理Unicode的详细信息,请参阅

英文:

Those are some of the 143,859 characters defined in Unicode.

The 𝓙, for example, is a "mathematical bold script capital j", 0x1D4D9 in hex, 120025 in decimal, 𝓙 as an character entity.

For details on handling Unicode in Java, see

huangapple
  • 本文由 发表于 2020年7月22日 23:01:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/63037321.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定