problems changing character encoding of files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everybody!
I have a folder full of html files. Each file has this tag in head section:
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
Here's output of file command:
file -bi one_of_files
text/html; charset=iso-8859-1
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..
I tried
$ iconv -f utf8 -t koi8 one_of_files

<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
       <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!
--
Hiisi.
Registered Linux User #487982. Be counted at: http://counter.li.org/

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux