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

Re: Converting from UTF8->EUC-JP

by lestrrat (Deacon)
on Jul 04, 2005 at 02:44 UTC ( [id://472110]=note: print w/replies, xml ) Need Help??


in reply to Converting from UTF8->EUC-JP

from_to is not exported by default. it also encode/decodes strings *in-place*.

use Encode qw(from_to); from_to($word, 'utf8', 'euc-jp');

On your second case, it depends. most likely cause is that $word isn't decoded into Perl's utf8 representation. You'd need to show more specific examples

Replies are listed 'Best First'.
Re^2: Converting from UTF8->EUC-JP
by GaijinPunch (Pilgrim) on Jul 04, 2005 at 05:01 UTC
    Very nice -- that did it. Much appreciated!

Log In?
Username:
Password:

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

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

    No recent polls found