That's Weird

Take a look at Ilham's posting in planet:






with the original post:







Why the encoding is different?
Why Firefox doesn't render well in planet, but does its job well in the original site?

Well, I think because of this one:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
It is one of the html head meta. But, it's not affecting well when I tried to simulate it. Hmm...

After using convmv and Kate (use the 2 tools differently), the file was forced to be considered as UTF-8. Still, the text is not human readable (though little amount of character was rendered nicely).

And then, when I used ViM, the text was rendered the same. So, I came to a conclusion with 2 possibilities:

  1. I conclude that our RSS machine, which is planet, uses 8-bit ISO 8859-1 encoding (Latin-1) as default encoding. Thus, the XML was parsed into Latin-1, not a 8-bit UTF-8 encoding. The fault is on the RSS Machine.
  2. Firefox mistakenly read the file as ISO 8859-1 and converted the fonts into wrong 8-bit encoding. This is because the META tag was missing in planet. So, Firefox handle the file with default encoding, which is ISO 8859-1.
Which is it?

I think it's #1, coz my system already an UTF-8 and my Firefox's default encoding is UTF-8, dunno was though. But, there is a stong lead to the #2. Need more justification, though.

Comments

  1. gue pake firefox, planet baik2 aja tuh? kanji-nya normal..

    ReplyDelete
  2. Anonymous4:43 PM

    same here. gw pake firefox 1.0.7 di atas ubuntu 5.10. bahkan, karakternya tampil lebih bagus ketimbang di opera.

    ReplyDelete
  3. Anonymous4:44 PM

    tadi itu maksud gw sama kyk andin.

    ReplyDelete
  4. EDIT: OK, sekarang gw jg ud bisa render dengan benar. Setelah diteliti kemungkinan Fx secara default gunain ISO-8895-1 sebagai default. Kemaren gw ganti jadi UTF-8 dan ngebuang cache planet dan jadi.

    Still, tag META harusnya ada di planet biar browser gag maen tebak2 berhadiah

    ReplyDelete

Post a Comment

Popular Posts