View Single Post
Old 2016-08-21, 05:21   #1101
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

5,741 Posts
Default UTF-8 encoding conversion failure?

With reference to the following assignment:
http://www.mersenne.org/report_expon...6917443&full=1

It shows as assigned to user: "João" and the webpage encoding is defined as UTF-8, but clearly the characters are wrong.

More likely the user name is João which would encode the ã as the two UTF-8 bytes ã.

So presumably the DB has recorded the user name in UTF-8 form (so far so good), but upon retrieval it gets pulled out as bytes and re-encoded to UTF-8? Or maybe it has recorded each UTF-8 byte as a separate UTF-8 character? Anyhow, whatever it is, is ain't right IMO.

Last fiddled with by retina on 2016-08-21 at 05:23
retina is online now   Reply With Quote