taint has asked for the wisdom of the Perl Monks concerning the following question:
The resulting files remain ISO-8859-1. This time with piconv(1):#!/bin/sh - # 2utf8 (via iconv(1) for i in *.html; do iconv -f iso-8859-1 -t utf8 $i > $i.tmp rm $i mv $i.tmp $i done
Again, the resultant files remain ISO-8859-1 (Latin1).#!/bin/sh - # 2utf8 (via Piconv(1) for i in *.html; do piconv -f iso-8859-1 -t utf8 $i > $i.tmp rm $i mv $i.tmp $i done
Strangley, if I change that line to:<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 +">
and perform:<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
The resultant file will be utf8 encoded.piconv -f ISO-8859-1 -t utf8 index.html > index.htm
#!/usr/bin/perl -Tw use perl::always; my $perl_version = "5.12.4"; print $perl_version;
|
|---|