Jan 23rd, 2006 | Blogging, Personal | 3 Comments
Looking around Dashboard of my blog I noticed that I have 99 posts and have decided to make a 100 one to memorize this occasion :)
Before I used to play around my blogs and most of the time I was loosing the posts, and it seems like this is the first time I am getting so far without any thoughts of changing something :) Updates are the only thing I am planning to do, the rest should stay.
Hope to get to the 200 :), but quality is always better than quantity. The other this is comments :) they are 144 now and I hope this number to increase bringing some nice ideas and feedback to me :)
Jan 23rd, 2006 | Networking, Technology | No Comments
Today, while viewing statistics for my blog, I noticed one interesting search query: “Apache russian charset”. Although it seems that I have never covered this issue in my blog, I had experienced this problem some time ago.
The idea is that some sites do not have a meta tag telling the browser which charset to use. This is getting really painful with russian since there are few (and I would say many) charsets for russian. As far as I know, when the browser do not see the meta tag for charset it takes a header given by apache to guess the encoding, but this is not correct in some cases as well. For instance if my server defaults to utf-8 and one of the virtual hosts (which I gave to my friend uses cp-1251) then there is a trouble (unless the browser is very inteligent to guess from the actuall page content). In this case, you can override the default charset for each virtual host by giving the AddDefaultCharset in the VirtualHost directive or by writing the same directive in the .htaccess file of the virtual host docuement root (for this the AllowOverride directive should be set correctly).
I had this problem when I gave a virtual host to my friend, but he was composing his HTML files on his home workstation (which had cp-1251 as a default charset for any saved files) and then was using FTP to upload the stuff.