Thread Ersetzen von © mit Perl (19 answers)
Opened by peach at 2008-04-07 23:40

Linuxer
 2008-04-08 00:21
#108044 #108044
User since
2006-01-27
3890 Artikel
HausmeisterIn

user image
Ich vermute mal, dass die Datei utf8 codiert ist (und damit auch das copyright-symbol).

Achte auf die fettgedruckten Hex-Codes für das Copyright-Zeichen...

Quote
0 ~> cat copy.txt
© bla

0 ~> file copy.txt
copy.txt: ISO-8859 text
0 ~> xxd copy.txt
0000000: a920 626c 610a . bla.

0 ~> recode latin1..utf8 copy.txt

0 ~> file copy.txt
copy.txt: UTF-8 Unicode text
0 ~> xxd copy.txt
0000000: c2a9 2062 6c61 0a .. bla.
0 ~>
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread Ersetzen von © mit Perl