I dont know if this helps you but here is how I got UTF-8 to work across systems using both 5.8 and 5.6.1 (and had to use
uxterm on the 5.6.1 to get xterm to display it correctly)
#!/usr/bin/perl -w
BEGIN{
if ($] < 5.008){
require utf8;
utf8->import();
}
}
if ($] >= 5.008){
binmode STDOUT, 'utf8';}
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.