problems changing character encoding of files
very-cool at rambler.ru
Thu Aug 20 15:16:01 UTC 2009
I have a folder full of html files. Each file has this tag in head
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
Here's output of file command:
file -bi one_of_files
There's cyrillic symbols in files and I'm having troubles when trying to
view or edit files. Instead of cyrillic symbols I can only see series of
<EF><C4><C5><D6><C4><C1> or something like that..
$ iconv -f utf8 -t koi8 one_of_files
<meta http-equiv="Content-Type" content="text/html;
<link REL="stylesheet" TYPE="text/css" HREF="style.css">
<title>iconv: virheellinen syötesarja kohdassa 179
The last line says there's wrong symbol at place 179.
When I tried to open files if Firefox everything worked just fine - I
could see the correct symbols in KOI-8-R encoding.
Is there a way to change encoding for every file in the folder?
Thank in advance!
Registered Linux User #487982. Be counted at: http://counter.li.org/
More information about the users