evian has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm writing a program to parse latex documents that contain greek alphabets. I tried using regex to convert "\alpha" to "\x{03B1}" like this:
... use utf8; my $text = "\\alpha"; $text =~ s/\\alpha/\x{03B1}/g; print $text; ...
however, I keep getting outputs that suggest perl isn't really using unicode. Any idea why? Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unicode in perl
by pid (Monk) on Aug 03, 2011 at 03:24 UTC | |
|
Re: unicode in perl
by Khen1950fx (Canon) on Aug 03, 2011 at 00:58 UTC |