Thread encoding mal wieder (20 answers)
Opened by Fragensteller at 2012-09-06 15:23

pq
 2012-09-07 14:25
#161682 #161682
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
geht hier wunderbar =)

wie gesagt, für strings direkt im skript nutzt man use utf8:
Code: (dl )
1
2
3
4
$ perl -wE'
use utf8;
say lc "Ä"'
ä

dann sind die strings automatisch dekodiert und lc() etc. arbeiten characterbasiert. (edit: alternativ kann man natürlich auch Encode::decode() auf den string anwenden)

beantwortet das deine frage?
Last edited: 2012-09-07 14:26:33 +0200 (CEST)
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread encoding mal wieder