I assume that when you say 'printing' you mean 'file I/O'
and that you are trying to generate an email in a standard
Chinese email character encoding instead of UTF-8.
What character encoding are you trying to generate?
iso-2022-cn / iso-2022-cn-ext?
Can someone tell them the easiest way to convert from
UTF-8 to another encoding on file output?
(I know that my perl wrappers for ICU, PICU
http://picu.sourceforge.net/, has converters but this requires
a few steps to use).
Nitin Aurora wrote:
I got your reference from an email/website where you had explained
someone about using UTF8 in perl.
I am facing a difficulty implementing the following. It would be
really great if you could help me out.
I want to send out an email from a perl program. The email contents
will be in traditional Chinese characters.
We have converted chinese text into Unicode.
We have assigned the unicode text to variables in perl program. This
variables we are printing into the mail body.
When we print it prints unicode characters.
How do we solve this problem ?
Your help will be really appreciated.