Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: utf8::is_utf8 valid introspection?

by ikegami (Pope)
on Jul 11, 2013 at 00:23 UTC ( #1043601=note: print w/ replies, xml ) Need Help??


in reply to utf8::is_utf8 valid introspection?

If you need to work around a bug, just use

utf8::upgrade($var);

or

utf8::downgrade($var);

to get the the string in the expected storage format (regardless of the current storage format).

The only use I can think of for utf8::is_utf8 is for debugging, but I use Devel::Peek's Dump when I want to peek at a scalar's internals.


Comment on Re: utf8::is_utf8 valid introspection?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2015-07-29 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls