Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: truncate string to byte count

by ikegami (Pope)
on Feb 28, 2019 at 21:13 UTC ( #1230691=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    is truncate_utf8($in, ...), "...";
    
  2. or download this
    is truncate_utf8(encode_utf8($in), ...), encode_utf8("...");
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-03-01 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (28 votes). Check out past polls.

    Notices?