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

Re: How do I convert text from UTF-8 to UTF-16LE in Perl

by JamesNC (Chaplain)
on Jun 17, 2005 at 04:49 UTC ( #467565=note: print w/ replies, xml ) Need Help??


in reply to How do I convert text from UTF-8 to UTF-16LE in Perl

I think Encode does what you want...

use Encode; my $data = "some utf8 string"; Encode::from_to( $data, "utf8", "utf16le" ); print $data;

JamesNC


Comment on Re: How do I convert text from UTF-8 to UTF-16LE in Perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2014-12-21 16:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls