[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.=20 Despite strategic [URL]ery and [convertchars] and [grep] and such, every = now and again something=20 slips 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 .=20 Apparently, I must be missing some entities despite using what I though w= ere complete lists,=20 otherwise 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=20 want to solve it once and for all. My hasty solution? A [convertchars] wi= th 10000 records to catch=20 every 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=20 obviously want to keep)? http://www.w3schools.com/tags/ref_symbols.asp shows that references start as low as 30-ish and go as high as 9800-ish (= hence loop 1-10000), but=20 this 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=20 entity, 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=20 than debugging frickin' ampersand issues. How are you all handling this issue? Thanks, -Dan [/rant] Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] HTML Symbol Entities (Terry Wilson 2009)
  2. Re: [WebDNA] HTML Symbol Entities ("Dan Strong" 2009)
  3. Re: [WebDNA] HTML Symbol Entities (Toby Cox 2009)
  4. Re: [WebDNA] HTML Symbol Entities (Govinda 2009)
  5. [WebDNA] HTML Symbol Entities ("Dan Strong" 2009)
[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.=20 Despite strategic [url]ery and [convertchars] and [grep] and such, every = now and again something=20 slips 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 .=20 Apparently, I must be missing some entities despite using what I though w= ere complete lists,=20 otherwise 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=20 want to solve it once and for all. My hasty solution? A [convertchars] wi= th 10000 records to catch=20 every 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=20 obviously want to keep)? http://www.w3schools.com/tags/ref_symbols.asp shows that references start as low as 30-ish and go as high as 9800-ish (= hence loop 1-10000), but=20 this 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=20 entity, 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=20 than 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:

RE: Nested [SEARCH] and [REPLACE] problem. (1997) orderfile and setlineitems (1998) searches with dash, period etc. (back form politeness) (2000) [Reload mydata.db] (1998) WebMerchant Error (1998) (2000) no [search] with NT (1997) Dreamweaver extensions [reprise] (2000) [WebDNA] Ubuntu 14.04 & WebDNA (2017) [WebDNA] Why the difference? (2012) Buying sans cart (1997) Trouble with formula.db (1997) Change in Host? (1999) Re:2nd WebCatalog2 Feature Request (1996) Plugin or CGI or both (1997) creating a 60 fields database (1997) using listfiles to build a database? more (2000) WebCatalog 2.0 b 15 mac (1997) Linux Beta4 Problem (2000) Search in 2 or more catalogs (1997)