in reply to Odd problems with UTF-8, regexps, and newer Perl versions
Basically if perl version ($]) is below 5.8 is uses one method of setting UTF-8 and if its equal to 5.8 or above it sets UTF-8 another way. I don't know how proper this is, but I was getting all kinds of trash whenever I tried to display Unicode (ISO-10646) on older Red Hat 7.3 in Xterm. After about 2 days of surfing I came up with the combination of using that in the script and launching in uxterm...now Unicode calls display properly on both types of systems.#!/usr/bin/perl -w BEGIN{ if ($] < 5.008){ require utf8; utf8->import(); } } if ($] >= 5.008){ binmode STDOUT, 'utf8';}
|
|---|