Corrupted apostrophes
by John from John D. Cook on (#77HRH)
I have a program that shares files between my laptop and my phone. It works well, except for apostrophes.
When I type an apostrophe ' on my laptop, it becomes aTM on my phone. And when I type 's on my phone, it becomes on my laptop.
Apparently the phone turns the apostrophe (U+0027) into a right single quote (U+2019), then bungles bytes in the UTF-8 encoding of U+2019 as three Windows-1252 characters. The bytes E28099hex are interpreted as a (E2hex), (80hex), and TM (99hex).
When I type 's on my phone, it is encoded as two Windows-1252 characters 92hex and 73hex. Then by the time the text appears on my laptop, the bytes 9273hex are interpreted as a Shift-JIS encoding of the CJK character (U+75F4).
The post Corrupted apostrophes first appeared on John D. Cook.