Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: some tech guy

I’ll go further: the issue doesn’t occur on the front page, only when you view the thread. That’s where the problem is.


3 posted on 11/19/2015 10:37:42 PM PST by some tech guy (Stop trying to help, Obama)
[ Post Reply | Private Reply | To 2 | View Replies ]


To: some tech guy
I’ll go further: the issue doesn’t occur on the front page, only when you view the thread. That’s where the problem is.

The problem is only with posted stuff. The server thinks it knows better than the user.

The most trivial example is posting non-HTML containing quotes. The server converts them from straight-up 7-bit ASCII to left and right curlies (smart quotes). They display just fine.

Then somebody selects them, posts them as a quote, adds commentary, and submits. Now they are garbage! LOL!

The root of the problem is, the server is looking at the UTF-8 input and supplying HTML entities for each non-7-bit ASCII byte it sees.

E.g., for a left curly double quote (“), the UTF-8 hex is e2 80 9c. The server translates those three bytes to “, which come out as “, namely, small-a with a circumflex, the euro symbol, and the oe ligature.

The solution is to convert that mess back to the original Unicode “.

This can easily be done client-side, using JavaScript. You just need some user scripts. See here for thread viewing and here for posting.

15 posted on 11/19/2015 11:11:28 PM PST by cynwoody
[ Post Reply | Private Reply | To 3 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson