Re: Problem with printing chinese characters

2001-06-15 14:37:27
Brian Stell <bstell(_at_)ix(_dot_)netcom(_dot_)com> writes:
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?

In theory with a perl5.7.1-ish perl then the Encode module can cope
with non-escape encodings, though none of the Asian encodings are 
"compiled in" they should load.

The iso-2022-* escape encodings need writing (or stealing from Tcl/ICU
giconv or whatever). 

What needs is someone to try and use it "for real".

(I know that my perl wrappers for ICU, PICU, 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.

Problem description
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.


Nick Ing-Simmons

<Prev in Thread] Current Thread [Next in Thread>