开发者

Goofy Unicode problem: mï ¿ ½

开发者 https://www.devze.com 2023-01-15 23:11 出处:网络
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 c

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.


It's the Unicode replacement character, 0xFFFD (); see also How to replace � in a string

So 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号