info:konwert2iso

konwertiso.sh

############################################################################
#    Copyright (C) 2005 by fradeff@akademia.ch                             #
#                                                                          #
#    This program is free software; you can redistribute it and#or modify  #
#    it under the terms of the GNU General Public License as published by  #
#    the Free Software Foundation; either version 2 of the License, or     #
#    (at your option) any later version.                                   #
#                                                                          #
#    This program is distributed in the hope that it will be useful,       #
#    but WITHOUT ANY WARRANTY; without even the implied warranty of        #
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         #
#    GNU General Public License for more details.                          #
#                                                                          #
#    You should have received a copy of the GNU General Public License     #
#    along with this program; if not, write to the                         #
#    Free Software Foundation, Inc.,                                       #
#    59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             #
############################################################################

#cherche tous les fichiers html, modifie le charset du header et convertit en isolatin
find . -name "*.html" -type f | while read i
do
replace "text/html; charset=utf-8" "text/html; charset=iso-8859-1" -- $i
konwert any-iso1 $i > i && mv i $i
done

Liste des formats acceptés par konwert:

ascii
cp1250
cp1251
cp1252
cp1253
cp1254
cp1255
cp1256
cp1257
cp1258
cp437
cp737
cp775
cp850
cp852
cp855
cp857
cp860
cp861
cp862
cp863
cp864
cp865
cp866
cp869
cp874
html
iso1
iso10
iso12
iso13
iso14
iso15
iso2
iso3
iso4
iso5
iso6
iso7
iso8
ISO-8859-1
ISO-8859-10
ISO-8859-12
ISO-8859-13
ISO-8859-14
ISO-8859-2
ISO-8859-3
ISO-8859-4
ISO-8859-6
ISO-8859-7
ISO-8859-8
ISO-8859-9
iso9
koi8r
koi8u
koi8uni
mac
utf8
  • info/konwert2iso.txt
  • Dernière modification : 2018/07/18 09:46
  • de radeff