Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Lost in encoding in Twig

by pcouderc (Monk)
on Jan 09, 2015 at 14:59 UTC ( #1112757=note: print w/replies, xml ) Need Help??


in reply to Re^4: Lost in encoding in Twig
in thread Lost in encoding in Twig

Thank you,
1- are you trying to tell me that utf8 is a "new" feature ? in 2014 ? sorry, in 2015 ;) .

2- do you want to tell that for each operation in perl, and particularly for IO, I MUST specify utf8?
Is there today another coding than utf8?

3- Is not it possible to specify that all is utf8 (unless exceptions) at computer level ? or at least at perl level, or at least at script level ?

Replies are listed 'Best First'.
Re^6: Lost in encoding in Twig
by hippo (Chancellor) on Jan 09, 2015 at 15:36 UTC
    1. No, quite the opposite in fact.
    2. No, you can do so more generally (see point 3). Yes, there are many other encodings today than utf8. Thank your lucky stars you are not forced to deal with MSWin32 encodings. :) There are also a plethora of data available from the past half century much of which utilises encodings other than utf8.
    3. use open qw(:utf8); or export PERL_UNICODE=S for example

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2020-12-04 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (58 votes). Check out past polls.

    Notices?