November 15, 2004
International Web Site
Some of you may have noticed garbage characters displaying in the Now Playing section of my home page (upper-right). This is something that had been bothering me for a while but I wasn't sure how to best go about it. Another thing that was bothering me was the timestamps in all these blog entries. It may have seemed weird for my posts to be at 5am or even more disturbing, in the future.
Well, the reasons for this are because I was dumping the native character bytes into my Now Playing file on disk, and my blog timezone is set to UTC (as is my server timezone). Easily fixed after some investigation. Rather than encode the foreign language characters into unicode, I changed Apache's default character set to UTF-8. Then I did some digging in the Movable Type template tags documentation and found the <$MTBlogTimezone$> variable. Everything looks good now.
Posted by josuah at November 15, 2004 7:54 AM UTC+00:00
Trackback Pings
TrackBack URL for this entry:
http://www.wesman.net/cgi-bin/mt/mt-tb.cgi/38
Comments
So how long did it take you to do everything you mentioned in paragraph two of this blog?
Longer than it should have because I was trying at first to convert the characters to unicode and then using HTML entities to encode them. UTF-8 is just easier.
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)