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

Re^14: Seeking Perl docs about how UTF8 flag propagates (Terminology)

by ikegami (Patriarch)
on May 23, 2023 at 01:27 UTC ( [id://11152376]=note: print w/replies, xml ) Need Help??


in reply to Re^13: Seeking Perl docs about how UTF8 flag propagates (Terminology)
in thread Seeking Perl docs about how UTF8 flag propagates

It doesn't "default to ASCII". It works against decoded text aka string of Unicode Code Points. Always. Even without pragmas. This can be demonstrated using "\N{U+100}" =~ /\w/ (which matches). You need to use /a if to limit it to the ASCII range.

Replies are listed 'Best First'.
Re^15: Seeking Perl docs about how UTF8 flag propagates (Terminology)
by LanX (Saint) on May 23, 2023 at 10:18 UTC
    we were talking about encoded text without UTF8 flag, but ...

    DB<3> p utf8::is_utf8("\N{U+100}") 1

    please lets stop it here.

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

      we were talking about encoded text without UTF8 flag

      Absolutely not. You replied to "Terms describing what a string represents (unrelated to storage format)" (emphasis added).

Log In?
Username:
Password:

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

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

    No recent polls found