Hi,

Is the MIME::Base64 support unicode?
I am trying to use the module to encode the  a password.

In the doc http://support.microsoft.com/default.aspx?scid=kb;en-us;263991
there is one line like this unicodePwd::IgBuAGUAdwBQAGEAcwBzAHcAbwByAGQAIgA=
the encoded string is what I want to produce using the module, I tried this,
#!/usr/bin/perl
use MIME::Base64;

$encoded = encode_base64('welcome');
print $encoded;

below is the output,
d2VsY29tZQ==

But the output encoded string looks a little shorter than in the
example, what I did something wrong?


--
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"[EMAIL PROTECTED]
")'

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to