Converted blog entries to utf-8

I finally took the time to find out how to convert all my blog entries to utf-8 encoding. My entries were in iso-8859-15, since that was the default in this machine when I put put this blog up. Debian running this site has iconv program installed, which converts encoding of given files. One shell line and all entries were converted. Nice. The only problem was that it messed my time stamps for all entries, but that was expected. I had to convert also kukkaisvoima_settings.py file, since that was also in iso-8859-15.

Here is the shell commands used to convert all my entries:

for x in *.txt;do iconv -t utf-8 $x -o $x.bak; mv $x.bak $x ;done;
If someone is going to use that, remember to take backups of all entries before the convert operation.

Categories: Kukkaisvoima
Date: 2008-03-25, 3 years and 319 days ago

Leave reply

No html allowed in reply

Notify me of follow-up comments via email.