mattihe has asked for the wisdom of the Perl Monks concerning the following question:
<entiteetti> <city>Ilmajoki</city> <date_created>20040722</date_created> <object_name>Maalla 1</object_name> <category>luo</category> <by-line>00020465</by-line> <keywords> <keyword>poika</keyword> <keyword>kes~^J</keyword> <keyword>kes~^Jloma</keyword> <keyword>lato</keyword> <keyword>maatalous</keyword> <keyword>maaseutu</keyword> <keyword>pelto</keyword> <keyword>lapsi</keyword> </keywords> </entiteetti>
# ä from mac to pc root-2.04# perl -e 'open (F, "<kuvat.txt");my @asd = <F>;close F;forea +ch(@asd){@t=split("\t", $_);$t[6] =~ s/\x8A/\xE4/g;print $t[6]."\n";} +' This is the way... *nix = http://www.idevelopment.info/data/Programming/ascii_table/PROGR +AMMING_ascii_table.shtml http://www.asciitable.com Mac = http://www.evergreen.edu/biophysics/technotes/program/ascii_ext- +mac.htm Other scandinavian letters... Ä = \x80 -> \xC4 ä = \x8A -> \xE4 Ö = \x85 -> \xD6 ö = \x9A -> \xF6 Å = \x81 -> \xC5 å = \x8C -> \xE5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IPTC data
by tachyon (Chancellor) on Aug 04, 2004 at 14:18 UTC | |
|
Re: IPTC data
by trantor (Chaplain) on Aug 04, 2004 at 14:14 UTC | |
by tachyon (Chancellor) on Aug 04, 2004 at 14:46 UTC |