[Israel.pm] ùàìä ìôåøåí

Shlomo Yona shlomo at cs.haifa.ac.il
Sun Jul 4 03:53:47 PDT 2004


On Sun, 4 Jul 2004, dana livni wrote:

[... snipped some message sent in Hebrew ...]

Hello,

Welcome to our mailing list.

What you want can be easily done using the URI::Escape
module.

Here is an example:

 use URI::Escape;
 $safe = uri_escape("10% is enough\n");
 $verysafe = uri_escape("foo", "\0-\377");
 $str  = uri_unescape($safe);

I suggest you carefully read its documentation at
http://search.cpan.org/~gaas/URI-1.31/URI/Escape.pm

Regarding this module's behavious under UNICODE characters
(you should also find out about the proper encoding of these
characters... are they UTF-8 encoded, or some other
encoding?) I'd suggest some trials, and perhaps asking the
author of the module.

Good luck.


-- 
Shlomo Yona
shlomo at cs.haifa.ac.il
http://cs.haifa.ac.il/~shlomo/



More information about the Perl mailing list