高飞 Unicode 问题:mï ¿ ½
我有一些文本进入数据库,显然存在某种 Unicode 问题。输入的文字是“面积 5 mï ¿ ½”,这似乎是某种测量单位,但我无法弄清楚上下文中的含义。搜索 Google 会显示许多类似的结果,因此这显然是一组常见的符号。
I have some text coming into a database that apparently has some sort of Unicode issue. the literal text coming in is "5 mï ¿ ½ in area", which appears to be some sort of unit of measure, but I can't sort out what the meaning is in context. Searching Google shows many similar results, so this is apparently a common set of symbols.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它是 Unicode 替换字符 0xFFFD (
�
);另请参阅 如何替换字符串中的 �所以我猜文本曾经是
5m² in area
,而²
在到达数据库之前就被乱码成�
。It's the Unicode replacement character, 0xFFFD (
�
); see also How to replace � in a stringSo I guess the text used to be
5m² in area
, and the²
was garbled into�
before it arrived in your database.它可能应该是
²
来表示“米平方”。但你显然有一个编码问题。我不知道问题是什么,因为您没有粘贴任何代码或指示上下文的任何详细信息。It's probably supposed to be
²
to indicate "meters squared". But you have an encoding problem clearly. I don't know what the problem is because you didn't paste any code or indicate any details for context.