java将货币符号更改为字符串中的unicode十六进制

时间:2012-03-26 22:25:12

标签: regex unicode

我想在字符串中获取货币符号的Unicode表示。如何转换下面字符串中的货币符号

The woman had a $500 handbag, but sold it for ₦13,000 to a Nigerian lady.

要:

The woman had a \ufdfc500 handbag, but sold it for \u20a613,000 to a Nigerian lady.

由于

修改

我明白了。感谢

1 个答案:

答案 0 :(得分:0)

也许我误解了这个问题,但我认为你所寻找的是String.ReplaceAll()(API Link。)

相关问题