For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 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-12-19, 8:00 am

http://search.cn.yahoo.com/search? ...6_1006&ei=UTF-8

What's the encode format for the
" %E9%A3%9E%E8%BD%AE%E6%B5%B7%E6%B5%B7%E6%
8A%A5" in above string?I
tried some ways but got nothing.

Please help,thanks.
John W. Krahn

2006-12-19, 8:00 am

Jm lists wrote:
> http://search.cn.yahoo.com/search? ...6_1006&ei=UTF-8
>
>
> What's the encode format for the
> " %E9%A3%9E%E8%BD%AE%E6%B5%B7%E6%B5%B7%E6%
8A%A5" in above string?I
> tried some ways but got nothing.


perldoc URI::Escape



John
--
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order. -- Larry Wall
tfe

2006-12-19, 8:00 am

or

$string =3D~ s/%([A-F0-9]{2})/chr(hex($1))/eg;


--
tfe
http://tfeserver.homelinux.com

John W. Krahn a =E9crit :

> Jm lists wrote:
%B7%E6%8A%A5&pid=3D65226_1006&ei=3DUTF-8[color=darkred]
>
> perldoc URI::Escape
>
>
>
> John
> --
> Perl isn't a toolbox, but a small machine shop where you can special-order
> certain sorts of tools at low cost and in short order. -- Larry Wall


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com