【问题标题】:I am trying to find an equivalent unicode for this symbol ¤. Could anyone let me know?我正在尝试为这个符号 ¤ 找到一个等效的 unicode。谁能告诉我?
【发布时间】:2017-07-19 04:25:34
【问题描述】:

我正在尝试为符号 ¤ 找到等效的 unicode 字符。有人可以告诉我吗?我尝试了 \u0207 和其他东西。

【问题讨论】:

  • 你试过"\u00A4"吗?
  • 是的,这是我根据worker_bee 的信息尝试和工作的。非常感谢你们俩。
  • HTML 使用 Unicode,因此通过将其放在此页面上,您已经拥有了它。 Java 使用 Unicode,因此通过将其粘贴到您的源代码中,您就可以使用它。 (在某些情况下,人们确实将他们的源文件转码为非 Unicode 编码,但在每种情况下,您都已告诉 Java 编译器正在使用什么,因此它可以将其转码回 Unicode。)

标签: java xml xslt unicode ascii


【解决方案1】:

您正在寻找的是一个 unicode 地图。使用http://www.unicodemap.org,您可以搜索任何 unicode 并找到其对应的 unicode 二进制表示。

这是我从网站获得的信息

Character Information   Unicode Range      UnicodeBinary    UCS-2Binary
"¤" CURRENCY SIGN       Latin-1 Supplement  0x00A4           0xA400

【讨论】:

  • 当然。 NP。将此答案标记为已解决,以便其他人可以从该问题中受益。谢谢。
  • 我想我不能投票,这不允许我说它需要 15 个声望才能做到。所以,谁能代表我做。
【解决方案2】:

164

在 python 中使用 ord() 得到这个

【讨论】:

    猜你喜欢
    • 2017-05-03
    • 2016-02-14
    • 2017-10-09
    • 1970-01-01
    • 1970-01-01
    • 2022-10-23
    • 1970-01-01
    • 2012-10-14
    • 1970-01-01
    相关资源
    最近更新 更多