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.