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

Re: mod_perl2 and utf8

by ikegami (Pope)
on Dec 23, 2009 at 18:35 UTC ( #814136=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      if (!Encode::is_utf8($str) && $str =~ m/\x80-\xff/) {
        $str = Encode::encode_utf8($str); # Get utf8 byte seq
        Encode::_utf8_on($str);           # and flip the flag
      }
      $r->print($str);
    
  2. or download this
      utf8::upgrade($str);
      $r->print($str);
    
  3. or download this
      utf8::encode($str);
      $r->print($str);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2015-07-03 07:16 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 (48 votes), past polls