Article View: pl.comp.lang.perl
Article #518Re: Perl i ogonki
From: kzal
Date: Mon, 25 Aug 1997 15:43
Date: Mon, 25 Aug 1997 15:43
21 lines
1290 bytes
1290 bytes
Artur Czechowski wrote:
>
> From Krzysztof Gmyr <gmyr@umt.ipl.net> in pl.comp.lang.perl on Mon, 18 Aug 1997 10:47:45 +0200
> o> zapytaniu sa polskie litery, to w query_string dostaje je zamienione na %xx
> o> gdzie xx to kod hex znaku. Jak to obejsc, bo mi nie dziala wyszukiwanie w
> s/%(..)/chr(hex($1))/ge
> lub
> s/\%(..)/chr(hex($1))/ge
> W tej chwili nie pamiętam, czy % musi być quotowany w regexp. Jeżeli to
> nie zadziała to spróbuj zamiast $1 dać \1.
>
> Pozdrawiam
> --
> Artur Czechowski <Czesiu@bofh.org.pl>
s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg
dziala zawsze....
Krzysztof Załęski
PoL, Webmaster
Technical Details
Message-ID:
<3401A83E.49CF@pol.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!cyfronet!news.nask.pl!01-newsfeed.univie.ac.at!Cabal.CESspool!bofh.vszbr.cz!news.maxwell.syr.edu!news.icm.edu.pl!not-for-mailReferences:
<5t9293$g1r$1@sunsite.icm.edu.pl> <5t9od5$hsg$4@arc.icl.co.uk>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!cyfronet!news.nask.pl!01-newsfeed.univie.ac.at!Cabal.CESspool!bofh.vszbr.cz!news.maxwell.syr.edu!news.icm.edu.pl!not-for-mail From: kzal@pol.pl Newsgroups: pl.comp.lang.perl Subject: Re: Perl i ogonki Date: Mon, 25 Aug 1997 17:43:58 +0200 Organization: ICM Lines: 21 Message-ID: <3401A83E.49CF@pol.pl> References: <5t9293$g1r$1@sunsite.icm.edu.pl> <5t9od5$hsg$4@arc.icl.co.uk> Reply-To: kzal@pol.pl NNTP-Posting-Host: 195.116.84.150 Mime-Version: 1.0 X-Mailer: Mozilla 3.03 (Win95; I) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit