Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: How to convert hash keys to utf8

by soonix (Canon)
on Sep 24, 2021 at 08:51 UTC ( #11136980=note: print w/replies, xml ) Need Help??


in reply to Re: How to convert hash keys to utf8
in thread How to convert hash keys to utf8

Neither _utf8_on (in Encode.pm) nor utf8_on (in DSU) mention a return value, _utf8_on (in DSU, probably different from Encode's) explicitly says
The data structure is converted in-place and as a convenience the passed variable is returned from the function.
Given mpersico's observation, it looks like for the hash itself it is not relevant whether its keys have an utf8 flag set or not.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-10-27 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (94 votes). Check out past polls.

    Notices?