in reply to Re: How to convert this to swedish characters?
in thread How to convert this to swedish characters?
#!/usr/bin/perl -w use encoding "utf8"; use strict; my $start=ord("a"); my $finish=ord("ö"); # use ord value to properly fill the list my @a=($start..$finish); for (@a ) { print chr($_)," $_\n"; } # show that list construct works fine without '..' @a=("a","ö"); print "$_\n" foreach (@a);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to convert this to swedish characters?
by learn_perl_se (Initiate) on Feb 08, 2007 at 13:34 UTC | |
by almut (Canon) on Feb 08, 2007 at 14:00 UTC | |
by learn_perl_se (Initiate) on Feb 08, 2007 at 14:23 UTC | |
by varian (Chaplain) on Feb 08, 2007 at 14:18 UTC | |
by almut (Canon) on Feb 08, 2007 at 14:45 UTC | |
by learn_perl_se (Initiate) on Feb 08, 2007 at 14:53 UTC | |
by almut (Canon) on Feb 08, 2007 at 15:40 UTC |