Corrupted apostrophes
Read OriginalThe article discusses a real-world encoding problem encountered when sharing files between a laptop and a phone. The user observes that typing an apostrophe (U+0027) on the laptop results in '’' on the phone, and typing 's on the phone results in '痴' on the laptop. The explanation involves the phone converting the apostrophe to a right single quote (U+2019), then misinterpreting its UTF-8 bytes (E2 80 99) as Windows-1252 characters (â, €, ™). Conversely, the phone encodes 's as Windows-1252 bytes 92 73, which the laptop interprets as Shift-JIS for the CJK character 痴 (U+75F4). This highlights common pitfalls in character encoding conversion and cross-platform text handling.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser