Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: En/Decode a unicode path

by LanX (Saint)
on Jan 22, 2023 at 11:24 UTC ( [id://11149760]=note: print w/replies, xml ) Need Help??


in reply to En/Decode a unicode path

Please provide a SSCCE because there are too many ways to (mis)understand your question.

In general any Perl function should be able to deal decoded strings (i.e. converted to the internal unicode character format, hence the string has the so called UTF8 flag activated).

Some (like JSON::decode_json) don't and expect encoded octet strings, so you need to check the documentation.

edit

see Encode for details

Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: En/Decode a unicode path
by exilepanda (Friar) on Jan 23, 2023 at 13:42 UTC
    for example
    use Storable; store { }, "Some/Unicode/PathFileName.sto"; # fail retrieve "Some/Unicode/PathFileName.sto"; # also fail
    Because I can't make Storable use Win32::Unicode.

    Encode, Win32::Unicode::* only works when I am directly access the dir/file, but won't work when other modules not using it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-24 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found