[WebDNA] HTML Symbol Entities
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102189
interpreted = N
texte = [rant]Probably a dumb question with a ridiculously easy answer as usual, but be=ar with me...So over the years, I keep getting bit by these entities (‚ etc.) wi=thin .db's/fields, etc.=20Despite strategic [URL]ery and [convertchars] and [grep] and such, every =now and again something=20slips through and the ampersand ends up busting my code.An obvious solution to help with this is a [convertchars] .db, which I ha=ve done years ago .=20Apparently, I must be missing some entities despite using what I though w=ere complete lists,=20otherwise I would not have this problem anymore.So it happened again today on code that has worked for years now I'm thor=oughly sick of it and=20want to solve it once and for all. My hasty solution? A [convertchars] wi=th 10000 records to catch=20every conceivable stinkin' symbol.[writefile=3DsymbolConvert.db][!][/!]FROM
TO[!][/!][loop start=3D1&end=3D10000][index];[/loop][=!][/!][/writefile]My problem? What entities are symbols? Which are blank? and which are nor=mal characters (which I=20obviously want to keep)?http://www.w3schools.com/tags/ref_symbols.aspshows that references start as low as 30-ish and go as high as 9800-ish (=hence loop 1-10000), but=20this is just crazy...[loop start=3D1&end=3D10000][index][index];
[/loop]shows everything warts and all. Most symbols are blank.Ok so if I go the [convertchars] route, is it possible that w3schools has=n't listed every-single=20entity, and ultimately, there has got to be a better way to handle this.Sorry for the rant, but I'm pissed off and have a ton of other things I n=eed to be doing rather=20than debugging frickin' ampersand issues.How are you all handling this issue?Thanks,-Dan[/rant]
Associated Messages, from the most recent to the oldest:
[rant]Probably a dumb question with a ridiculously easy answer as usual, but be=ar with me...So over the years, I keep getting bit by these entities (‚ etc.) wi=thin .db's/fields, etc.=20Despite strategic [url]ery and [convertchars] and [grep] and such, every =now and again something=20slips through and the ampersand ends up busting my code.An obvious solution to help with this is a [convertchars] .db, which I ha=ve done years ago .=20Apparently, I must be missing some entities despite using what I though w=ere complete lists,=20otherwise I would not have this problem anymore.So it happened again today on code that has worked for years now I'm thor=oughly sick of it and=20want to solve it once and for all. My hasty solution? A [convertchars] wi=th 10000 records to catch=20every conceivable stinkin' symbol.[writefile=3DsymbolConvert.db][!][/!]FROMTO[!][/!][loop start=3D1&end=3D10000][index];[/loop][=!][/!][/writefile]My problem? What entities are symbols? Which are blank? and which are nor=mal characters (which I=20obviously want to keep)?http://www.w3schools.com/tags/ref_symbols.aspshows that references start as low as 30-ish and go as high as 9800-ish (=hence loop 1-10000), but=20this is just crazy...[loop start=3D1&end=3D10000][index][index];
[/loop]shows everything warts and all. Most symbols are blank.Ok so if I go the [convertchars] route, is it possible that w3schools has=n't listed every-single=20entity, and ultimately, there has got to be a better way to handle this.Sorry for the rant, but I'm pissed off and have a ton of other things I n=eed to be doing rather=20than debugging frickin' ampersand issues.How are you all handling this issue?Thanks,-Dan[/rant]
"Dan Strong"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[WebDNA] Receive JSON POST (2019)
Add more fields to an existent data base (1997)
Flushdatabases - WCAT4 not functioning (2000)
One more try (1997)
Displaying photo attached to first record (1997)
WebCatalog 4 Install Problems - Not Answered ?? (2000)
UPS uber integration (2007)
4.01 broken pages using ShowNext (2000)
form data submission gets truncated (1997)
[searchString] (1997)
too many nested tags ... (1997)
raw=T is broken in [include] (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
WebDNA 4.5.1 Now Available (2003)
RE: format problem on NT? (1997)
hmmm (2006)
referrer variable (1997)
Web Catalog 2 demo (1997)
textarea input- nevermind (2002)
Running webdna on centos 4.2? (2006)