Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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.


Comment on Re: Unicode Korean problem
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-08-23 04:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls