Re: [SLUG] weird html thing

From: Eben King (eben1@tampabay.rr.com)
Date: Wed Jun 01 2005 - 16:10:47 EDT


On Wed, 1 Jun 2005, Mike Branda wrote:

> I'm playing with phplist currently and have a question. Some things are
> broken due to the fact that after the message is sent, the html source
> in Evolution shows up with 3D in between the = and ". It is not this
> way in the original code.
>
> examples:
>
> <img src=3D"
>
> <table height=3D"250" width=3D"600" align=3D"center">
> <tr>
> <td align=3D"center" height=3D"50"><strong>
>
>
> It shows up all over the place. if I google that string above all sorts
> of other web pages come up but nothing as to where or why it happens.
>
> anybody know what's up with this??

My WAG is that it's not that "3D" is inserted wrongly, it's that "=" is the
escape sequence for the encoding used by some tool in your toolchain, and as
Kwan said, 3D is the ASCII code for "=". The whole sequence is
<escape><code> or in this case "=3D". Same effect for "=", though. All
character sets I can think of are the same as ASCII for 0-127.

Bad choice of escape character IMO, though I can't think of an ASCII
character which is

  - not interpreted badly by any popular OS, and
  - less frequently used

If it's only a few files that are affected, I guess you can do something
like

sed 's/=3D/=/g < file.html > temp
mv temp file.html

Other characters than "=" may be affected (especially if you used any
accented characters); I'd recommend grepping for "=" in the suspect files.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
AQUARIUS:  There's travel in your future when your tongue freezes to the
back of a speeding bus.  Fill the void in your pathetic life by playing
Whack-a-Mole 17 hours a day.  -- Weird Al, _Your Horoscope for Today_

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:57:48 EDT