PDA

View Full Version : Mainpage encoding is wrong


Palad1
Oct 14, 2004, 07:48 PM
Hello!

I use safari and firefox both on Mac and PC (well, not safari of course:) ) and I sometimes notice strange characters (white on black diamonds with a question mark inside) on the front page.

Seems like the html headers declare that the encoding is UTF-8, but it actually seems to be ISO-8859-1, as the artefacts go away when I force this encoding.

Thanks for your work on the site,
Cheers,Palad1

SilentPanda
Oct 15, 2004, 02:13 PM
I get those shapes on Firefox under Win 2k... so at least your not crazy... in this instance... :)

Palad1
Nov 3, 2004, 03:56 AM
Hello,

I looked deeper into the site and it seems that the forum uses iso8859-1 , whereas the main site uses UTF-8.

So when the main site includes subject lines from the forums, all hell breaks loose.

It's just a matter of translating from the forums encoding into the main site encoding. You can do this by calling the php function utf8_encode (see here: http://fr2.php.net/manual/en/function.utf8-encode.php )

I guess switching the forums over to utf-8 is just too much work, altough it'd be nice for our korean friends :)

Rower_CPU
Nov 3, 2004, 06:22 PM
Thanks for the info - we'll look into it :)

combatcolin
Nov 4, 2004, 10:57 AM
Maybe related but when i click on a posting from the main page and then click back to the home page the font changes.

Never happens with any other web-site.

Win 2000 Pro
Win Ex 6.02

Palad1
Nov 5, 2004, 03:26 AM
Hello,

I ran accross this tool which may help you make sure the problem is gone:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.macrumors.com&charset=%28detect+automatically%29&doctype=%28detect+automatically%29

I wasn't aware the W3C validator did checks on the encoding as well.

Keep up the good work,
Palad1

Rower_CPU
Nov 5, 2004, 10:37 AM
Good sleuthing - I'll follow up with the folks who can change those settings and we'll see what we can do.

Palad1
Nov 5, 2004, 10:55 AM
http://home.hetnet.nl/~onsdweiltje/cartoons/tigger_sherlock.gif
Sleuthing - That's what tiggers do best!

Rower_CPU
Nov 5, 2004, 11:01 AM
Bien sūr. ;)

Squire
Nov 7, 2004, 02:59 PM
I guess switching the forums over to utf-8 is just too much work, altough it'd be nice for our korean friends :)

Why do you say that? I don't seem to have any problem. (Unless you mean typing in Hangul.)

Squire

Palad1
Nov 7, 2004, 06:51 PM
Why do you say that? I don't seem to have any problem. (Unless you mean typing in Hangul.)

Squire

yup, that's what I meant :)

kainjow
May 12, 2009, 06:01 PM
Although reported twice after this thread in 2005, this is still a bug that I came across today (after 4.5 years!). Looks like it's the same too - the forum text is ISO 8859-1 (ISO Latin 1) but the front page is set to UTF-8. Manually overriding the encoding in both Safari and Firefox fixes it.

Example:
170777

RedTomato
May 12, 2009, 06:19 PM
I get the same thing too sometimes. I always thought it was just a Firefox bug.

Do you want us to post here if we see the same thing again? (with browser version and webpage / post URL?

kainjow
May 12, 2009, 06:21 PM
Do you want us to post here if we see the same thing again? (with browser version and webpage / post URL?

I don't think it's necessary. It's a recurring bug that will continue to show up until it's fixed. It's an encoding issue with the text, not browser/OS.

Eraserhead
Jun 6, 2009, 03:32 PM
I've seen this issue too on occasion.

jweinraub
Jun 8, 2009, 09:00 AM
Hi guys,

I have to use a PC at work :mad: and whenever I see items with quotation marks, Firefox at least gives it the unknown Unicode character symbol. I have tried several different encodings to no avail.

What am missing? Can something be done to correct this, as this is pretty much the only site I have seen in a long while where I get unknown character symbols (I even installed all of the foreign language packs just so I don't get unknown char/boxes/weird symbols!)

Example:
isn’t

I hope copy/paste will actually work.

On a side note, you guys should register MacRumours.com and redirect it here.

Cheers,

Jon

PS- After posting it seemed copy/pasting "corrected" the issue at hand, however, on the main page view I get the problem using FF. I haven't checked yet using IE, Safari, Opera, Chrome, etc.

PPS- In fact I haven't even been to this site on my Mac since I do all of my reading at work where I have more "downtime"! ;-)

wrldwzrd89
Jun 8, 2009, 09:04 AM
I believe MacRumors uses UTF-8. If your browser is set to something other than Unicode (UTF-8) for MacRumors, that may explain the character problems.

jweinraub
Jun 8, 2009, 09:45 AM
I am indeed using UTF-8.

http://www.weinraub.net/file2.png
Character Encoding Settings

http://www.weinraub.net/file1.png
Example of the problem at hand

sammich
Jun 8, 2009, 09:48 AM
http://forums.macrumors.com/showthread.php?t=93058

Apparently it's because the forums use a different char encoding to the mainpage.

I've only noticed this in the recent forum posts on the right column, but never in the news column.

jweinraub
Jun 8, 2009, 10:33 AM
I was brought to this thread and apparently the mods thought it fit to lock it in a unresolved state. Which I think is unfair and was done with too much haste and with the lack of thought.

Regardless, I will add to this thread instead.

http://www.weinraub.net/file3.png

Changing the character encoding to ISO-1859-1 did jack squat.

http://www.weinraub.net/file4.png

However, not all quotes seem to have the problem, regardless of their character encodings.

WildCowboy
Jun 8, 2009, 10:43 AM
^^^Yeah, that's a problem with pasting curly quotes and apostrophes. We usually fix them, but sometimes they slip through.

That one should be fixed now.