"curly" apostrphes mess up in new comments


Recommended Posts

Um sorry, i'm having trouble understanding, what exactly is messing up? like the exact character

Link to comment
Share on other sites

I think it's a character encoding issue.

I use ?fancy quotes??em-dashes and 2?3 en-dashes when?the correct ?e? when I write words like expos? and ellipsis?maybe a plus or minus symbol twice ? 1 time when I post.

You notice it on news comments but not in the forums.

Link to comment
Share on other sites

Well, here's an example of a problem post:

https://www.neowin.net/news/main/09/03/19/m...n#comment759114

You're right about the encoding. It decodes fine when manually set to unicode.

The problem is that the page source is telling my browser (firefox) otherwise:

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

[edit]Interestingly this page contains the same header but displays those characters fine.

Which leads me back to thinking it's a substitution issue (or lack there of) on the user input box when making a comment.

Link to comment
Share on other sites

it looks like the forums are turning the curly quotes into the html entity equivolent. look at the source and you'll see them:

"

the news is sending the actual unicode character through and not converting it.

Link to comment
Share on other sites

It won't be really really fixed until PHP gets proper support for Unicode, and then the software would be updated to work with it.

Be happy Unicode works in the places it does, since it's not really supported by the code.

Link to comment
Share on other sites

It won't be really really fixed until PHP gets proper support for Unicode, and then the software would be updated to work with it.

Be happy Unicode works in the places it does, since it's not really supported by the code.

Looks more to do with Neowin's site comments code than PHP itself. If IPB can handle the same unicode characters just fine, what makes you think it's PHP's lack of full support for unicode? And as shakey_snake said, the news page is sending an ISO-8859-1 header, and then trying to send unicode over this? Perhaps change the encoding of the html to UTF-8, or convert the comments themselves (like the forum does)?

Link to comment
Share on other sites

Thread titles that end with non-alphanumeric characters cause IPB to add weird stuff to the title.

I often strip the quotes out of the thread titles to fix the appearance.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.