Home > Archive > PERL Beginners > November 2006 > What's this string?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
What's this string?
|
|
| Jm lists 2006-11-28, 3:57 am |
| Hello,
Can you tell me what's this string?
=?GBK?B? zNSxpszh0NHE+qO6wvS80tLRvq3GwLzbo6zH67vY
xsA=?=
How to decode it?I try:
$ perl -MEncode -le 'print
encode("utf8",decode("gbk","=?GBK?B? zNSxpszh0NHE+qO6wvS80tLRvq3GwLzbo6zH67vY
xsA=?="))'
But I can't get the result correctly.
Thanks for your helps.
| |
|
| Jm lists wrote:
> Hello,
>
> Can you tell me what's this string?
>
> =3D?GBK?B? zNSxpszh0NHE+qO6wvS80tLRvq3GwLzbo6zH67vY
xsA=3D?=3D
>
>
> How to decode it?I try:
>
> $ perl -MEncode -le 'print
> encode("utf8",decode("gbk","=3D?GBK?B?zNSxpszh0NHE+qO6wvS80tLRvq3GwLzbo=
6zH67vYxsA=3D?=3D"))'=20
>
>
> But I can't get the result correctly.
>
>
> Thanks for your helps.
>
Hi,
This is an standard Outlook header ( Micro$oft standard ) , and the=20
string should be decode with MIME::Base64.
print decode_base64 " zNSxpszh0NHE+qO6wvS80tLRvq3GwLzbo6zH67vY
xsA=3D";
you got " =E6=B7=98=E5=AE=9D=E6=8F=90=E9=86=92=E6=
82=A8=EF=BC=9A=E5=8D=96=E5=
=AE=B6=E5=B7=B2=E7=BB=8F=E8=AF=84=E4=BB=
B7=EF=BC=8C=E8=AF=B7=E5=9B=9E=E8=AF=
=84" ( The site reminder: The=20
buyer had bet the price, please reply )
"=3D?GBK?" is declare that the string is coding with GBK, and but B? is=20
what ? I forgot...
HTH,
Mud
| |
| Jeff Pang 2006-11-28, 7:58 am |
|
>
>This is an standard Outlook header ( Micro$oft standard ) , and the
>string should be decode with MIME::Base64.
>
>print decode_base64 " zNSxpszh0NHE+qO6wvS80tLRvq3GwLzbo6zH67vY
xsA=";
>you got "????????????????" ( The site reminder: The
>buyer had bet the price, please reply )
>
>"=?GBK?" is declare that the string is coding with GBK, and but B? is
>what ? I forgot...
>
Here B is the base64 protocol type,there are base64 B,Q,etc.
--
Books below translated by me to Chinese.
Practical mod_perl: http://home.earthlink.net/~pangj/mod_perl/
Squid the Definitive Guide: http://home.earthlink.net/~pangj/squid/
| |
| Jenda Krynicky 2006-11-28, 6:59 pm |
| From: Mug <perl@reborn.org>
> Jm lists wrote:
> Hi,
>
> This is an standard Outlook header ( Micro$oft standard ) , and the
> string should be decode with MIME::Base64.
>
> print decode_base64 " zNSxpszh0NHE+qO6wvS80tLRvq3GwLzbo6zH67vY
xsA=3D";
> you got " 淘宝=C9醒=E9=DC卖家已经=E
4价=EE请回=E4" (=
The site
> reminder: The buyer had bet the price, please reply )
>
> "=3D?GBK?" is declare that the string is coding with GBK, and but B? is
> what ? I forgot...
Base64
The other option would be Q =3D quoted-printable, MIME::QuotedPrint.
Jenda
=3D=3D=3D=3D=3D Jenda@Krynicky.cz =3D=3D=3D http://Jenda.Krynicky.cz =3D=3D=
=3D=3D=3D
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
|
|
|
|
|