Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: convert UTF-8 in nested data structures

by valdez (Monsignor)
on Nov 08, 2005 at 11:11 UTC ( #506697=note: print w/replies, xml ) Need Help??

in reply to convert UTF-8 in nested data structures

You could use Data::Structure::Util:

use Data::Structure::Util qw/ utf8_on /; $ref = { whatever => 'אטילעש' }; utf8_on( $ref );

Ciao, Valerio

Replies are listed 'Best First'.
Re^2: convert UTF-8 in nested data structures
by slayven (Pilgrim) on Nov 08, 2005 at 18:16 UTC
    The Description of the Module says
    use Data::Structure::Util qw/ utf8_on /;
    This routine performs a sv_utf8_upgrade on each scalar string in the passed data structure that does not have the utf8 flag turned on.
    This is not exactly what I'm looking for. I need to convert the string regardless the flag it has internally.
    -- slayven
            trust in bash
            but tie your camel

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://506697]
[shmem]: anyways, do as is your wont. I won't fight western hypocresy anymore - for today. Let's call that a day, and done.
[erix]: yeah, scanning pre-loaded. I wouldn't have it any other way. As I say, my attention is a rare commodity, jealously guarded.
[erix]: ok, ok. happy pipe-dreams :P
[shmem]: have a good time inside your information bubble.
[erix]: perhaps we can have common hindsight at these thing in a few years time

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2018-03-19 21:14 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.