Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: How to sanely handle unicode in perl?

by Your Mother (Archbishop)
on Mar 20, 2015 at 16:43 UTC ( [id://1120765]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to sanely handle unicode in perl?
in thread How to sanely handle unicode in perl?

You took the locale bit out, right? Both examples from choroba and me/tchrist work in my UTF-8 terminal.

moo@cow~>echo $LC_CTYPE
utf-8
moo@cow~>perl ~/pm-eg
I read a line, that is 1 chars long.
That line is: ö
That line in ascii is: o

Update: this works the same for me as well: setenv LC_CTYPE de_DE.UTF-8

Replies are listed 'Best First'.
Re^4: How to sanely handle unicode in perl?
by Sec (Monk) on Mar 20, 2015 at 17:12 UTC
    As said elsewhere, I've not found a way to make it work in both UTF-8 and ISO8859-1 terminals. Not looking at the locale charset to see what terminal you are on does not sound like it'll work.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1120765]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2024-04-25 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found