skip warnning

  • Follow


Hi All

How to skip below  warning 

gawk: cmd. line:92: warning: escape sequence `\>' treated as plain `>'
gawk: cmd. line:94: warning: escape sequence `\<' treated as plain `<'

Replace > to &gt  for generate Excel XML file 
function WriteDetail (lotx) {
   # Special Character
   gsub("\>","\\&gt;",lotx)
   gsub("\>","",lotx)
   gsub("\<","\\&lt;",lotx)
   gsub("\<","",lotx)
   n = split(lotx,nx,"\t")
   print "     <ss:Row>"
   for ( i = 1 ; i <= n ; i++) {
       print "     <ss:Cell>"
       print "       <ss:Data ss:Type=\"String\">" nx[i] "</ss:Data>"
       print "     </ss:Cell>"
   }
   print "     </ss:Row>"
0
Reply moonhkt (146) 7/19/2012 4:21:26 AM

On 7/18/2012 11:21 PM, moonhkt wrote:
> Hi All
>
> How to skip below  warning

By "skip" I assume you mean "fix my code in response to the excellent warning 
gawk is giving me that my code is broken".

> gawk: cmd. line:92: warning: escape sequence `\>' treated as plain `>'
> gawk: cmd. line:94: warning: escape sequence `\<' treated as plain `<'

$ gawk 'BEGIN{ gsub("\>","\\&gt;",lotx) }'
gawk: cmd. line:1: warning: escape sequence `\>' treated as plain `>'
$ gawk 'BEGIN{ gsub(">","\\&gt;",lotx) }'
$ gawk 'BEGIN{ gsub(/\>/,"\\&gt;",lotx) }'
$ gawk 'BEGIN{ gsub("\\>","\\&gt;",lotx) }'
$

Just RTFM then use whatever one you intend your code to implement.

    Ed.
0
Reply mortonspam (827) 7/19/2012 6:10:10 AM


moonhkt=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=
=9BUTC+8=E4=B8=8B=E5=8D=8812=E6=99=8221=E5=88=8626=E7=A7=92=E5=AF=AB=E9=81=
=93=EF=BC=9A
> Hi All
>=20
> How to skip below  warning=20
>=20
> gawk: cmd. line:92: warning: escape sequence `\&gt;&#39; treated as plain=
 `&gt;&#39;
> gawk: cmd. line:94: warning: escape sequence `\&lt;&#39; treated as plain=
 `&lt;&#39;
>=20
> Replace &gt; to &amp;gt  for generate Excel XML file=20
> function WriteDetail (lotx) {
>    # Special Character
>    gsub(&quot;\&gt;&quot;,&quot;\\&amp;gt;&quot;,lotx)
>    gsub(&quot;\&gt;&quot;,&quot;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;\\&amp;lt;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;&quot;,lotx)
>    n =3D split(lotx,nx,&quot;\t&quot;)
>    print &quot;     &lt;ss:Row&gt;&quot;
>    for ( i =3D 1 ; i &lt;=3D n ; i++) {
>        print &quot;     &lt;ss:Cell&gt;&quot;
>        print &quot;       &lt;ss:Data ss:Type=3D\&quot;String\&quot;&gt;&=
quot; nx[i] &quot;&lt;/ss:Data&gt;&quot;
>        print &quot;     &lt;/ss:Cell&gt;&quot;
>    }
>    print &quot;     &lt;/ss:Row&gt;&quot;



moonhkt=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=
=9BUTC+8=E4=B8=8B=E5=8D=8812=E6=99=8221=E5=88=8626=E7=A7=92=E5=AF=AB=E9=81=
=93=EF=BC=9A
> Hi All
>=20
> How to skip below  warning=20
>=20
> gawk: cmd. line:92: warning: escape sequence `\&gt;&#39; treated as plain=
 `&gt;&#39;
> gawk: cmd. line:94: warning: escape sequence `\&lt;&#39; treated as plain=
 `&lt;&#39;
>=20
> Replace &gt; to &amp;gt  for generate Excel XML file=20
> function WriteDetail (lotx) {
>    # Special Character
>    gsub(&quot;\&gt;&quot;,&quot;\\&amp;gt;&quot;,lotx)
>    gsub(&quot;\&gt;&quot;,&quot;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;\\&amp;lt;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;&quot;,lotx)
>    n =3D split(lotx,nx,&quot;\t&quot;)
>    print &quot;     &lt;ss:Row&gt;&quot;
>    for ( i =3D 1 ; i &lt;=3D n ; i++) {
>        print &quot;     &lt;ss:Cell&gt;&quot;
>        print &quot;       &lt;ss:Data ss:Type=3D\&quot;String\&quot;&gt;&=
quot; nx[i] &quot;&lt;/ss:Data&gt;&quot;
>        print &quot;     &lt;/ss:Cell&gt;&quot;
>    }
>    print &quot;     &lt;/ss:Row&gt;&quot;



moonhkt=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=
=9BUTC+8=E4=B8=8B=E5=8D=8812=E6=99=8221=E5=88=8626=E7=A7=92=E5=AF=AB=E9=81=
=93=EF=BC=9A
> Hi All
>=20
> How to skip below  warning=20
>=20
> gawk: cmd. line:92: warning: escape sequence `\&gt;&#39; treated as plain=
 `&gt;&#39;
> gawk: cmd. line:94: warning: escape sequence `\&lt;&#39; treated as plain=
 `&lt;&#39;
>=20
> Replace &gt; to &amp;gt  for generate Excel XML file=20
> function WriteDetail (lotx) {
>    # Special Character
>    gsub(&quot;\&gt;&quot;,&quot;\\&amp;gt;&quot;,lotx)
>    gsub(&quot;\&gt;&quot;,&quot;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;\\&amp;lt;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;&quot;,lotx)
>    n =3D split(lotx,nx,&quot;\t&quot;)
>    print &quot;     &lt;ss:Row&gt;&quot;
>    for ( i =3D 1 ; i &lt;=3D n ; i++) {
>        print &quot;     &lt;ss:Cell&gt;&quot;
>        print &quot;       &lt;ss:Data ss:Type=3D\&quot;String\&quot;&gt;&=
quot; nx[i] &quot;&lt;/ss:Data&gt;&quot;
>        print &quot;     &lt;/ss:Cell&gt;&quot;
>    }
>    print &quot;     &lt;/ss:Row&gt;&quot;



moonhkt=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=
=9BUTC+8=E4=B8=8B=E5=8D=8812=E6=99=8221=E5=88=8626=E7=A7=92=E5=AF=AB=E9=81=
=93=EF=BC=9A
> Hi All
>=20
> How to skip below  warning=20
>=20
> gawk: cmd. line:92: warning: escape sequence `\&gt;&#39; treated as plain=
 `&gt;&#39;
> gawk: cmd. line:94: warning: escape sequence `\&lt;&#39; treated as plain=
 `&lt;&#39;
>=20
> Replace &gt; to &amp;gt  for generate Excel XML file=20
> function WriteDetail (lotx) {
>    # Special Character
>    gsub(&quot;\&gt;&quot;,&quot;\\&amp;gt;&quot;,lotx)
>    gsub(&quot;\&gt;&quot;,&quot;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;\\&amp;lt;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;&quot;,lotx)
>    n =3D split(lotx,nx,&quot;\t&quot;)
>    print &quot;     &lt;ss:Row&gt;&quot;
>    for ( i =3D 1 ; i &lt;=3D n ; i++) {
>        print &quot;     &lt;ss:Cell&gt;&quot;
>        print &quot;       &lt;ss:Data ss:Type=3D\&quot;String\&quot;&gt;&=
quot; nx[i] &quot;&lt;/ss:Data&gt;&quot;
>        print &quot;     &lt;/ss:Cell&gt;&quot;
>    }
>    print &quot;     &lt;/ss:Row&gt;&quot;

0
Reply moonhkt (146) 7/19/2012 12:50:25 PM

moonhkt=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=
=9BUTC+8=E4=B8=8B=E5=8D=8812=E6=99=8221=E5=88=8626=E7=A7=92=E5=AF=AB=E9=81=
=93=EF=BC=9A
> Hi All
>=20
> How to skip below  warning=20
>=20
> gawk: cmd. line:92: warning: escape sequence `\&gt;&#39; treated as plain=
 `&gt;&#39;
> gawk: cmd. line:94: warning: escape sequence `\&lt;&#39; treated as plain=
 `&lt;&#39;
>=20
> Replace &gt; to &amp;gt  for generate Excel XML file=20
> function WriteDetail (lotx) {
>    # Special Character
>    gsub(&quot;\&gt;&quot;,&quot;\\&amp;gt;&quot;,lotx)
>    gsub(&quot;\&gt;&quot;,&quot;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;\\&amp;lt;&quot;,lotx)
>    gsub(&quot;\&lt;&quot;,&quot;&quot;,lotx)
>    n =3D split(lotx,nx,&quot;\t&quot;)
>    print &quot;     &lt;ss:Row&gt;&quot;
>    for ( i =3D 1 ; i &lt;=3D n ; i++) {
>        print &quot;     &lt;ss:Cell&gt;&quot;
>        print &quot;       &lt;ss:Data ss:Type=3D\&quot;String\&quot;&gt;&=
quot; nx[i] &quot;&lt;/ss:Data&gt;&quot;
>        print &quot;     &lt;/ss:Cell&gt;&quot;
>    }
>    print &quot;     &lt;/ss:Row&gt;&quot;

0
Reply moonhkt (146) 7/19/2012 12:52:40 PM

moonhkt=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=
=9BUTC+8=E4=B8=8B=E5=8D=888=E6=99=8252=E5=88=8640=E7=A7=92=E5=AF=AB=E9=81=
=93=EF=BC=9A
> moonhkt=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=E5=
=9B=9BUTC+8=E4=B8=8B=E5=8D=8812=E6=99=8221=E5=88=8626=E7=A7=92=E5=AF=AB=E9=
=81=93=EF=BC=9A
> &gt; Hi All
> &gt;=20
> &gt; How to skip below  warning=20
> &gt;=20
> &gt; gawk: cmd. line:92: warning: escape sequence `\&amp;gt;&amp;#39; tre=
ated as plain `&amp;gt;&amp;#39;
> &gt; gawk: cmd. line:94: warning: escape sequence `\&amp;lt;&amp;#39; tre=
ated as plain `&amp;lt;&amp;#39;
> &gt;=20
> &gt; Replace &amp;gt; to &amp;amp;gt  for generate Excel XML file=20
> &gt; function WriteDetail (lotx) {
> &gt;    # Special Character
> &gt;    gsub(&amp;quot;\&amp;gt;&amp;quot;,&amp;quot;\\&amp;amp;gt;&amp;q=
uot;,lotx)
> &gt;    gsub(&amp;quot;\&amp;gt;&amp;quot;,&amp;quot;&amp;quot;,lotx)
> &gt;    gsub(&amp;quot;\&amp;lt;&amp;quot;,&amp;quot;\\&amp;amp;lt;&amp;q=
uot;,lotx)
> &gt;    gsub(&amp;quot;\&amp;lt;&amp;quot;,&amp;quot;&amp;quot;,lotx)
> &gt;    n =3D split(lotx,nx,&amp;quot;\t&amp;quot;)
> &gt;    print &amp;quot;     &amp;lt;ss:Row&amp;gt;&amp;quot;
> &gt;    for ( i =3D 1 ; i &amp;lt;=3D n ; i++) {
> &gt;        print &amp;quot;     &amp;lt;ss:Cell&amp;gt;&amp;quot;
> &gt;        print &amp;quot;       &amp;lt;ss:Data ss:Type=3D\&amp;quot;S=
tring\&amp;quot;&amp;gt;&amp;quot; nx[i] &amp;quot;&amp;lt;/ss:Data&amp;gt;=
&amp;quot;
> &gt;        print &amp;quot;     &amp;lt;/ss:Cell&amp;gt;&amp;quot;
> &gt;    }
> &gt;    print &amp;quot;     &amp;lt;/ss:Row&amp;gt;&amp;quot;

Sorry. Using New Google Group, have issue.
tried Not OK.
like=20
0 changed to    <0&<gt;
0
Reply moonhkt (146) 7/19/2012 12:56:59 PM

moonhkt [19.07.2012 14:56]:
> 
> Sorry. Using New Google Group, have issue.
> tried Not OK.
> like 
> 0 changed to    <0&<gt;
> 

What did you try?

Ed just told you to use > instead of \> on line 92, and to use < instead
of \< on line 94. The error text is quite descriptive, I think.

Unfortunately, the script you posted does not show that many lines, so
it might be anywhere in the code. You should see it by looking at the
original code, I think.

Just my 2¢
Werner

-- 

0
Reply werner.flamme (7) 7/19/2012 1:15:03 PM

Werner Flamme=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=
=E5=9B=9BUTC+8=E4=B8=8B=E5=8D=889=E6=99=8215=E5=88=8603=E7=A7=92=E5=AF=AB=
=E9=81=93=EF=BC=9A
> moonhkt [19.07.2012 14:56]:
> &gt;=20
> &gt; Sorry. Using New Google Group, have issue.
> &gt; tried Not OK.
> &gt; like=20
> &gt; 0 changed to    &lt;0&amp;&lt;gt;
> &gt;=20
>=20
> What did you try?
>=20
> Ed just told you to use &gt; instead of \&gt; on line 92, and to use &lt;=
 instead
> of \&lt; on line 94. The error text is quite descriptive, I think.
>=20
> Unfortunately, the script you posted does not show that many lines, so
> it might be anywhere in the code. You should see it by looking at the
> original code, I think.
>=20
> Just my 2=C2=A2
> Werner
>=20
> --


for change <123> to &lt;123&gt; for excel read the XML file

     <ss:Cell>
       <ss:Data ss:Type=3D"String">&lt;123&gt;</ss:Data>
     </ss:Cell>

lotx is \t delimiter string , each elemnt have > or < value change to &gt; =
or &lt;

function WriteDetail (lotx) {
   # Special Character
   gsub("\>","\\&gt;",lotx)
   gsub("\>","",lotx)
   gsub("\<","\\&lt;",lotx)
   gsub("\<","",lotx)
   n =3D split(lotx,nx,"\t")
   print "     <ss:Row>"
   for ( i =3D 1 ; i <=3D n ; i++) {
       print "     <ss:Cell>"
       print "       <ss:Data ss:Type=3D\"String\">" nx[i] "</ss:Data>"
       print "     </ss:Cell>"
   }
   print "     </ss:Row>"
}

0
Reply moonhkt (146) 7/19/2012 3:04:51 PM

moonhkt <moonhkt@gmail.com> wrote:

> Werner Flamme於 2012年7月19日星期四UTC+8下午9時15分03秒寫道:
> > moonhkt [19.07.2012 14:56]:
> > &gt; 
> > &gt; Sorry. Using New Google Group, have issue.
> > &gt; tried Not OK.
> > &gt; like 
> > &gt; 0 changed to    &lt;0&amp;&lt;gt;
> > &gt; 
> > 
> > What did you try?
> > 
> > Ed just told you to use &gt; instead of \&gt; on line 92, and to use &lt;
instead
> > of \&lt; on line 94. The error text is quite descriptive, I think.
> > 
> > Unfortunately, the script you posted does not show that many lines, so
> > it might be anywhere in the code. You should see it by looking at the
> > original code, I think.
> > 
> > Just my 2¢
> > Werner
> > 
> > --
> 
> 
> for change <123> to &lt;123&gt; for excel read the XML file
> 
>      <ss:Cell>
>        <ss:Data ss:Type="String">&lt;123&gt;</ss:Data>
>      </ss:Cell>
> 
> lotx is \t delimiter string , each elemnt have > or < value change to &gt; or &lt;

The question wasn't "why are you running your script?", the question was "why
are you trying to post the same question again when you already got it answered?".

Having said that, now that you've posted some sample input and a hint at the
expected output, we can give you an explicit answer:

$ awk 'BEGIN{
   lotx="foo<bar>hello<world>"
   gsub(/</,"\\&lt;",lotx)
   gsub(/>/,"\\&gt;",lotx)
   print lotx
}'

foo&lt;bar&gt;hello&lt;world&gt;

I can't imagine what you think this would do:

   gsub("\>","",lotx)

after you change all the ">"s to "&gt;"s with this:

   gsub("\>","\\&gt;",lotx)

in your script below.

Regards,

    Ed.

> 
> function WriteDetail (lotx) {
>    # Special Character
>    gsub("\>","\\&gt;",lotx)
>    gsub("\>","",lotx)


Posted using www.webuse.net 
0
Reply mortonspam (827) 7/19/2012 4:20:20 PM

On Thu, 19 Jul 2012 08:04:51 -0700 (PDT), moonhkt <moonhkt@gmail.com> wrote:

Bunch of crap, please use plain text, not html, for usenet!

Free text only usenet access is available, google-gropes is broken.

Grant.

>Werner Flamme? 2012?7?19????UTC+8??9?15?03????
>> moonhkt [19.07.2012 14:56]:
>> &gt; 
>> &gt; Sorry. Using New Google Group, have issue.
>> &gt; tried Not OK.
>> &gt; like 
>> &gt; 0 changed to    &lt;0&amp;&lt;gt;
>> &gt; 
>> 
>> What did you try?
>> 
>> Ed just told you to use &gt; instead of \&gt; on line 92, and to use &lt; instead
>> of \&lt; on line 94. The error text is quite descriptive, I think.
>> 
>> Unfortunately, the script you posted does not show that many lines, so
>> it might be anywhere in the code. You should see it by looking at the
>> original code, I think.
>> 
>> Just my 2¢
>> Werner
>> 
>> --
>
>
>for change <123> to &lt;123&gt; for excel read the XML file
>
>     <ss:Cell>
>       <ss:Data ss:Type="String">&lt;123&gt;</ss:Data>
>     </ss:Cell>
>
>lotx is \t delimiter string , each elemnt have > or < value change to &gt; or &lt;
>
>function WriteDetail (lotx) {
>   # Special Character
>   gsub("\>","\\&gt;",lotx)
>   gsub("\>","",lotx)
>   gsub("\<","\\&lt;",lotx)
>   gsub("\<","",lotx)
>   n = split(lotx,nx,"\t")
>   print "     <ss:Row>"
>   for ( i = 1 ; i <= n ; i++) {
>       print "     <ss:Cell>"
>       print "       <ss:Data ss:Type=\"String\">" nx[i] "</ss:Data>"
>       print "     </ss:Cell>"
>   }
>   print "     </ss:Row>"
>}
0
Reply omg1 (46) 7/20/2012 3:36:46 AM

On 7/19/2012 10:04 AM, moonhkt wrote:
> Werner Flamme於 2012年7月19日星期四UTC+8下午9時15分03秒寫道:
>> moonhkt [19.07.2012 14:56]:
>> &gt;
>> &gt; Sorry. Using New Google Group, have issue.
>> &gt; tried Not OK.
>> &gt; like
>> &gt; 0 changed to    &lt;0&amp;&lt;gt;
>> &gt;
>>
>> What did you try?
>>
>> Ed just told you to use &gt; instead of \&gt; on line 92, and to use &lt; instead
>> of \&lt; on line 94. The error text is quite descriptive, I think.
>>
>> Unfortunately, the script you posted does not show that many lines, so
>> it might be anywhere in the code. You should see it by looking at the
>> original code, I think.
>>
>> Just my 2¢
>> Werner
>>
>> --
>
>
> for change <123> to &lt;123&gt; for excel read the XML file
>
>       <ss:Cell>
>         <ss:Data ss:Type="String">&lt;123&gt;</ss:Data>
>       </ss:Cell>
>
> lotx is \t delimiter string , each elemnt have > or < value change to &gt; or &lt;

The question wasn't "why are you running your script?", the question was "why
are you trying to post the same question again when you already got it answered?".

Having said that, now that you've posted some sample input and a hint at the
expected output, we can give you an explicit answer:

$ awk 'BEGIN{
    lotx="foo<bar>hello<world>"
    gsub(/</,"\\&lt;",lotx)
    gsub(/>/,"\\&gt;",lotx)
    print lotx
}'

foo&lt;bar&gt;hello&lt;world&gt;

I can't imagine what you think this would do:

    gsub("\>","",lotx)

after you change all the ">"s to "&gt;"s with this:

    gsub("\>","\\&gt;",lotx)

in your script below.

Regards,

     Ed.
>
> function WriteDetail (lotx) {
>     # Special Character
>     gsub("\>","\\&gt;",lotx)
>     gsub("\>","",lotx)
>     gsub("\<","\\&lt;",lotx)
>     gsub("\<","",lotx)
0
Reply mortonspam (827) 7/20/2012 12:47:41 PM

On 7=E6=9C=8820=E6=97=A5, =E4=B8=8B=E5=8D=888=E6=99=8247=E5=88=86, Ed Morto=
n <mortons...@gmail.com> wrote:
> On 7/19/2012 10:04 AM, moonhkt wrote:
>
>
>
>
>
>
>
>
>
> > Werner Flamme=E6=96=BC 2012=E5=B9=B47=E6=9C=8819=E6=97=A5=E6=98=9F=E6=
=9C=9F=E5=9B=9BUTC+8=E4=B8=8B=E5=8D=889=E6=99=8215=E5=88=8603=E7=A7=92=E5=
=AF=AB=E9=81=93=EF=BC=9A
> >> moonhkt [19.07.2012 14:56]:
> >> &gt;
> >> &gt; Sorry. Using New Google Group, have issue.
> >> &gt; tried Not OK.
> >> &gt; like
> >> &gt; 0 changed to =C2=A0 =C2=A0&lt;0&amp;&lt;gt;
> >> &gt;
>
> >> What did you try?
>
> >> Ed just told you to use &gt; instead of \&gt; on line 92, and to use &=
lt; instead
> >> of \&lt; on line 94. The error text is quite descriptive, I think.
>
> >> Unfortunately, the script you posted does not show that many lines, so
> >> it might be anywhere in the code. You should see it by looking at the
> >> original code, I think.
>
> >> Just my 2=C2=A2
> >> Werner
>
> >> --
>
> > for change <123> to &lt;123&gt; for excel read the XML file
>
> > =C2=A0 =C2=A0 =C2=A0 <ss:Cell>
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 <ss:Data ss:Type=3D"String">&lt;123&gt;</ss=
:Data>
> > =C2=A0 =C2=A0 =C2=A0 </ss:Cell>
>
> > lotx is \t delimiter string , each elemnt have > or < value change to &=
gt; or &lt;
>
> The question wasn't "why are you running your script?", the question was =
"why
> are you trying to post the same question again when you already got it an=
swered?".
>
> Having said that, now that you've posted some sample input and a hint at =
the
> expected output, we can give you an explicit answer:
>
> $ awk 'BEGIN{
> =C2=A0 =C2=A0 lotx=3D"foo<bar>hello<world>"
> =C2=A0 =C2=A0 gsub(/</,"\\&lt;",lotx)
> =C2=A0 =C2=A0 gsub(/>/,"\\&gt;",lotx)
> =C2=A0 =C2=A0 print lotx
>
> }'
>
> foo&lt;bar&gt;hello&lt;world&gt;
>
> I can't imagine what you think this would do:
>
> =C2=A0 =C2=A0 gsub("\>","",lotx)
>
> after you change all the ">"s to "&gt;"s with this:
>
> =C2=A0 =C2=A0 gsub("\>","\\&gt;",lotx)
>
> in your script below.
>
> Regards,
>
> =C2=A0 =C2=A0 =C2=A0Ed.
>
>
>
>
>
>
>
>
>
> > function WriteDetail (lotx) {
> > =C2=A0 =C2=A0 # Special Character
> > =C2=A0 =C2=A0 gsub("\>","\\&gt;",lotx)
> > =C2=A0 =C2=A0 gsub("\>","",lotx)
> > =C2=A0 =C2=A0 gsub("\<","\\&lt;",lotx)
> > =C2=A0 =C2=A0 gsub("\<","",lotx)

Sorry about that. old code worked. Now change as below.

   # Special Character
   #gsub("\>","\\&gt;",lotx)
   #gsub("\>","",lotx)
   #gsub("\<","\\&lt;",lotx)
   #gsub("\<","",lotx)
   gsub(/</,"\\&lt;",lotx)
   gsub(/>/,"\\&gt;",lotx)

Also, How to Access Usenet group ? This question ask before. I still
cannot found how to access usenet group.
0
Reply moonhkt (146) 7/20/2012 4:41:34 PM

On 20.07.2012 18:41, moonhkt wrote:
[...]
> 
> Also, How to Access Usenet group ? This question ask before. I still
> cannot found how to access usenet group.

Get a newsreader for your platform; e.g. Thunderbird - while certainly
not at the high end, at least it's available for WinDOS and Linux (and
probably some other platforms as well) - then configure access to some
news server, e.g. news.aioe.org (or another news server, one that your
internet provider may probably run). Then subscribe to newsgroups; see
the documentation for your newsreader how to do that. - That's a start,
at least.

Janis

> 


0
Reply janis_papanagnou (1038) 7/20/2012 6:05:02 PM

moonhkt <moonhkt@gmail.com> wrote:
<snip> 
> Also, How to Access Usenet group ? This question ask before. I still
> cannot found how to access usenet group.

FWIW I use http://www.eternal-september.org with my email client when I can, and
http://www.webuse.net with a browser otherwise (e.g. when at work and external
email/news servers are unavailable but internet is accessible via browsers).

    Ed.


Posted using www.webuse.net 
0
Reply mortonspam (827) 7/20/2012 6:09:23 PM

On Jul 21, 2:09=A0am, "Ed Morton" <mortons...@gmail.com> wrote:
> moonhkt <moon...@gmail.com> wrote:
>
> <snip>
>
> > Also, How to Access Usenet group ? This question ask before. I still
> > cannot found how to access usenet group.
>
> FWIW I usehttp://www.eternal-september.orgwith my email client when I can=
, andhttp://www.webuse.netwith a browser otherwise (e.g. when at work and e=
xternal
> email/news servers are unavailable but internet is accessible via browser=
s).
>
> =A0 =A0 Ed.
>
> Posted usingwww.webuse.net

Thank. I got http://www.webuse.net account
0
Reply moonhkt (146) 7/22/2012 10:56:37 AM

On Fri, 20 Jul 2012 18:09:23 +0000, Ed Morton wrote:


> FWIW I use http://www.eternal-september.org with my email client when I
> can, and http://www.webuse.net with a browser otherwise (e.g. when at
> work and external email/news servers are unavailable but internet is
> accessible via browsers).

I would agree with Ed on this one. I recently switched to eternal 
september and a native newsreader since google changed their usenet 
interface.

0
Reply firstname.dot.lastname (1) 7/26/2012 10:59:54 AM

14 Replies
160 Views

(page loaded in 0.324 seconds)

Similiar Articles:


















7/22/2012 5:24:16 PM


Reply: