<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:David;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Arial;}
h1
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:Arial;}
p.MsoFootnoteText, li.MsoFootnoteText, div.MsoFootnoteText
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:17.0pt;
        margin-bottom:.0001pt;
        text-indent:-17.0pt;
        font-size:9.0pt;
        font-family:Arial;
        font-style:italic;}
p.MsoCaption, li.MsoCaption, div.MsoCaption
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:10.0pt;
        font-family:Arial;}
p.MsoList, li.MsoList, div.MsoList
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:34.0pt;
        margin-bottom:.0001pt;
        text-indent:-17.0pt;
        mso-list:l5 level1 lfo18;
        font-size:12.0pt;
        font-family:Arial;}
p.MsoListBullet, li.MsoListBullet, div.MsoListBullet
        {margin-top:3.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:25.5pt;
        text-indent:-19.85pt;
        mso-list:l3 level1 lfo21;
        font-size:11.0pt;
        font-family:Arial;}
p.MsoListNumber, li.MsoListNumber, div.MsoListNumber
        {margin-top:3.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:18.0pt;
        text-indent:-18.0pt;
        mso-list:l2 level1 lfo2;
        font-size:11.0pt;
        font-family:Arial;}
p.MsoList2, li.MsoList2, div.MsoList2
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:51.05pt;
        margin-bottom:.0001pt;
        text-indent:-17.05pt;
        mso-list:l4 level1 lfo20;
        font-size:12.0pt;
        font-family:Arial;}
p.MsoListBullet2, li.MsoListBullet2, div.MsoListBullet2
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:34.0pt;
        margin-bottom:.0001pt;
        text-indent:-17.0pt;
        mso-list:l1 level1 lfo12;
        font-size:11.0pt;
        font-family:Arial;}
p.MsoListBullet3, li.MsoListBullet3, div.MsoListBullet3
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:51.05pt;
        margin-bottom:.0001pt;
        text-indent:-17.05pt;
        mso-list:l0 level1 lfo17;
        font-size:11.0pt;
        font-family:Arial;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        text-align:center;
        font-size:16.0pt;
        font-family:Arial;
        font-weight:bold;}
p.MsoBodyText, li.MsoBodyText, div.MsoBodyText
        {margin-top:3.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:Arial;}
p.MsoBodyTextFirstIndent, li.MsoBodyTextFirstIndent, div.MsoBodyTextFirstIndent
        {margin-top:3.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:17.0pt;
        font-size:11.0pt;
        font-family:Arial;}
p.MsoBodyText2, li.MsoBodyText2, div.MsoBodyText2
        {margin-top:3.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:17.0pt;
        font-size:11.0pt;
        font-family:Arial;}
p.MsoBodyTextIndent2, li.MsoBodyTextIndent2, div.MsoBodyTextIndent2
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:34.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Arial;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.StyleBodyTextFirstIndentBefore063cmFirstline0cm, li.StyleBodyTextFirstIndentBefore063cmFirstline0cm, div.StyleBodyTextFirstIndentBefore063cmFirstline0cm
        {margin-top:3.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:17.0pt;
        font-size:11.0pt;
        font-family:Arial;}
p.Sub-Title, li.Sub-Title, div.Sub-Title
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        text-align:center;
        font-size:14.0pt;
        font-family:Arial;
        font-style:italic;}
span.EmailStyle32
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:21.0cm 842.0pt;
        margin:2.0cm 2.0cm 65.2pt 70.9pt;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:-126;
        mso-list-type:simple;
        mso-list-template-ids:1911344842;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-style-link:"List Bullet 3";
        mso-level-text:\F0B7;
        mso-level-tab-stop:51.05pt;
        mso-level-number-position:left;
        margin-left:51.05pt;
        text-indent:-17.05pt;
        font-family:Symbol;}
@list l1
        {mso-list-id:-125;
        mso-list-type:simple;
        mso-list-template-ids:-1054985060;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-style-link:"List Bullet 2";
        mso-level-text:\F0B7;
        mso-level-tab-stop:34.0pt;
        mso-level-number-position:left;
        margin-left:34.0pt;
        text-indent:-17.0pt;
        font-family:Symbol;}
@list l2
        {mso-list-id:-120;
        mso-list-type:simple;
        mso-list-template-ids:-909362804;}
@list l2:level1
        {mso-level-style-link:"List Number";
        mso-level-tab-stop:18.0pt;
        mso-level-number-position:left;
        margin-left:18.0pt;
        text-indent:-18.0pt;}
@list l3
        {mso-list-id:-119;
        mso-list-type:simple;
        mso-list-template-ids:2053509862;}
@list l3:level1
        {mso-level-number-format:bullet;
        mso-level-style-link:"List Bullet";
        mso-level-text:\25A0;
        mso-level-tab-stop:25.5pt;
        mso-level-number-position:left;
        margin-left:25.5pt;
        text-indent:-19.85pt;
        mso-ansi-font-size:9.0pt;
        mso-bidi-font-size:9.0pt;
        font-family:Arial;
        mso-bidi-font-family:"Times New Roman";
        mso-ansi-font-weight:normal;
        mso-bidi-font-weight:normal;
        mso-ansi-font-style:normal;
        mso-bidi-font-style:normal;}
@list l4
        {mso-list-id:1805538338;
        mso-list-type:hybrid;
        mso-list-template-ids:-858103508 -1883372704 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l4:level1
        {mso-level-style-link:"List 2";
        mso-level-tab-stop:51.05pt;
        mso-level-number-position:left;
        margin-left:51.05pt;
        text-indent:-17.05pt;}
@list l5
        {mso-list-id:1928418554;
        mso-list-type:hybrid;
        mso-list-template-ids:-1894493196 2132983906 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l5:level1
        {mso-level-number-format:hebrew-1;
        mso-level-style-link:List;
        mso-level-tab-stop:34.0pt;
        mso-level-number-position:center;
        margin-left:34.0pt;
        text-indent:-17.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>Hey Hebrew
processing folks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>The
LWP (Lib WWW for Perl) package seems to be very unfriendly or even right out hostile
to Unicode, RTL text or just Hebrew.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>There
are many examples. For one: the HTML::TreeBuilder package -&gt;Dump and -&gt;as_HTML
methods totally garble Hebrew UTF-8 text.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>But
let's start first with a very simple Cookie_jar case which I first <a
href="http://www.mail-archive.com/libwww@perl.org/msg06768.html">posted </a>on
the <a href="mailto:libwww@perl.org">libwww@perl.org</a> mailing list (with no
results!) The following code to the Google site suggested by the LWP originator
and maintainer Gisle Aas worked fine:<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";font-weight:bold'>use LWP::UserAgent;<o:p></o:p></span></font></b></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";font-weight:bold'>use HTTP::Cookies;<o:p></o:p></span></font></b></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";font-weight:bold'>my $jar = HTTP::Cookies-&gt;new(file
=&gt; &quot;lwp.jar&quot;, autosave =&gt; 1);<o:p></o:p></span></font></b></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";font-weight:bold'>my $ua = LWP::UserAgent-&gt;new(cookie_jar
=&gt; $jar);<o:p></o:p></span></font></b></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";font-weight:bold'>$ua-&gt;get(&quot;http://www.google.com&quot;)-&gt;dump;<o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>And indeed,
it fills the 'lwp.jar' file with a few entries.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>But
just changing the URL to <a href="http://www.magna.isa.gov.il/">http://www.magna.isa.gov.il</a>
produced a cookie jar file with just a comment headline and no entries at all.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>As
you might see for yourself, the MAGNA site does send a </span></font><b><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
font-weight:bold'>Set-Cookie: ASP.NET_SessionId=ddkkv245c14tol45bgk35m45; path=/;
HttpOnly </span></font></b><font size=2><span style='font-size:10.0pt'>line.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>So, in
the spirit of the last week's events, why is the Israeli site discriminated
against???<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>Meir<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>