Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: length() miscounting UTF8 characters?

by choroba (Cardinal)
on Apr 27, 2014 at 22:51 UTC ( [id://1084058]=note: print w/replies, xml ) Need Help??


in reply to Re^2: length() miscounting UTF8 characters?
in thread length() miscounting UTF8 characters?

You are almost there.
use open IO => ':utf8', ':std';

The order matters.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: length() miscounting UTF8 characters?
by AppleFritter (Vicar) on Apr 27, 2014 at 22:59 UTC
    Wonderful! That really works - hardly Perl at its dwimmiest, but I'll take what I can get. Thanks so much again!
      You first applied the settings to standard streams, then changed them. I first changed them, then applied the changed settings to the standard streams.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-24 22:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found