英文:
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的详细信息,请参阅
- https://stackoverflow.com/q/2533097/290085
- https://stackoverflow.com/q/9699071/290085
- https://stackoverflow.com/q/39955169/290085
英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论