Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Encode double encoding?

by farang (Hermit)
on May 23, 2014 at 18:59 UTC ( #1087254=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Encode double encoding?
in thread Encode double encoding?

What would I have to do to be able to use "s\x{c3}\x{bc}\x{c3}\x{9f}e" as though it were "s\xc3\xbc\xc3\x9fe" ?

I'm not sure what else is going on, but those strings are equivalent.

perl -MO=Deparse -e 'print "s\xc3\xbc\xc3\x9fe"' perl -MO=Deparse -e 'print "s\x{c3}\x{bc}\x{c3}\x{9f}e"'
Both parse the same:
print "s\303\274\303\237e"; -e syntax OK
I wonder if you have standard output encoded correctly. Maybe adding this will help.
binmode STDOUT, ':utf8';


Comment on Re^3: Encode double encoding?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-12-27 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls