This won't work. I have no idea at all what happens when the input is UTF-16, but Perl expects input from the back-tick operator to be in another encoding. What I NEED is to
tell Perl what character-encoding to read via the back-tick operator.

On 17 feb 2006, at 13.40, Jeff Pang wrote:

I think you should write a subroutine using the 'Encode' module to do the translation. Have a look at 'perldoc Encode' please,or search the CPAN to find some solutions for you.

-----Original Message-----
From: Tommy Nordgren <[EMAIL PROTECTED]>
Sent: Feb 17, 2006 7:30 AM
To: beginners perl <beginners@perl.org>
Subject: Reading unicode (UTF-16)

Is it possible to read the UTF-16 format with the back-tick operator
in perl?
Also is it possible to set the encoding used by the back-tick operator
dynamically from a command line option passed to my perl script?

-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
[EMAIL PROTECTED]




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com

-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
[EMAIL PROTECTED]




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to