Re: decode function equal to Java's

2007-05-14 Thread Chas Owens
On 5/14/07, Jen mlists <[EMAIL PROTECTED]> wrote: 2007/5/14, Chas Owens <[EMAIL PROTECTED]>: > #!/usr/bin/perl > use strict; > use warnings; > > use strict; > use Encode; > use URI::Escape; > my $str = 'Perl%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%28%EF%BF%BD%EF%

Re: decode function equal to Java's

2007-05-14 Thread Jen mlists
2007/5/14, Chas Owens <[EMAIL PROTECTED]>: #!/usr/bin/perl use strict; use warnings; use strict; use Encode; use URI::Escape; my $str = 'Perl%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%28%EF%BF%BD%EF%BF%BD%EF%BF%BD%C4%B0%EF%BF%BD%29.pdf'; my $tr = encode("utf8",de

Re: decode function equal to Java's

2007-05-14 Thread Chas Owens
On 5/14/07, Jen mlists <[EMAIL PROTECTED]> wrote: snip I need to translate this string, Perl%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%28%EF%BF%BD%EF%BF%BD%EF%BF%BD%C4%B0%EF%BF%BD%29.pdf This was a string appeared in our web logs. snip The following worked for me.

Re: decode function equal to Java's

2007-05-14 Thread Jen mlists
2007/5/11, Dr.Ruud <[EMAIL PROTECTED]>: "Jen mlists" schreef: > I'm faint I MUST take the time to work with double-character > handling though I'm not familiar with it. > What's the function in perl which is equal to Java's this call: > java.net.URLDecoder.decode(s, "UTF-8") Hello all, I nee

Re: decode function equal to Java's

2007-05-10 Thread Dr.Ruud
"Jen mlists" schreef: > I'm faint I MUST take the time to work with double-character > handling though I'm not familiar with it. > What's the function in perl which is equal to Java's this call: > java.net.URLDecoder.decode(s, "UTF-8") First read perlunitut: http://juerd.nl/perlunitut.html (wh