http://www.perlmonks.org?node_id=478950


in reply to Unicode Korean problem

The documentation for MIME::QuotedPrint talks about doing this:

Perl v5.6 and better allow extended Unicode characters in strings. Such strings cannot be encoded directly, as the quoted-printable encoding is only defined for single-byte characters. The solution is to use the Encode module to select the byte encoding you want. For example:

use MIME::QuotedPrint qw(encode_qp); use Encode qw(encode); $encoded = encode_qp(encode("UTF-8", "\x{FFFF}\n")); print $encoded;

This seems different to the encode statement you've posted above.

Did you try the example from the docs? What was the outcome of that? Assuming it works, which it does for me, it would seem straightforward enough to apply that example to your needs.

Update: Grammatical changes, and added a line to indicate that the example works for me.

Replies are listed 'Best First'.
Re^2: Unicode Korean problem
by bivansc (Initiate) on Jul 28, 2005 at 14:07 UTC
    That works! Thank you... I had seen stuff implying I needed to use 'decode()', when really it was encode()! After making the switch then it works!