[Vienna-pm] unicode-debakel

Leopold Toetsch lt at toetsch.at
Mon Sep 22 08:38:31 CDT 2003


peter pilsl wrote:

> Hallo,
> 
> perl 5.8.0 unter linux
> 
> Aber ich verstehe auch die perlinterne unicode-abarbeitung nicht. 

Ich nehme an, die relevanten docs hast du gelesen (perluni*, perllocale...)

> Vorweg : das script scheitert in allen punkten. 

Seh ich nicht so, ganz im Gegentum:

$ perl u.pl | recode utf8..latin1
de_AT
a this is a lower a (0061)
a this is a upper a (0061)
ä this is lower german umlaut-a (00e4)
ä this is upper german umlaut-a (00e4)
b this is a lower b (0062)
b this is a upper b (0062)
o this is a lower o (006f)
o this is a upper o (006f)
ö this is lower german umlaut-o (00f6)
ö this is upper german umlaut-o (00f6)
p this is a lower p (0070)
p this is a upper p (0070)
z this is a lower z (007a)

- smiley disabled
und am Anfang enabled:
- setlocale(LC_COLLATE,"de_AT.utf8");
- binmode(STDOUT,":utf8");
(Ich habe kein passendes term mit utf8 Font, daher die Rückwandlung nach 
latin1)

leo




More information about the Vienna-pm mailing list