Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Unicode Korean problem

by Tanalis (Curate)
on Jul 28, 2005 at 13:06 UTC ( #478950=note: print w/replies, xml ) Need Help??

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!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2020-10-26 16:53 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (252 votes). Check out past polls.