Re: [WebDNA] HTML Symbol Entities

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102193
interpreted = N
texte = No, I totally hear you and am looking into that now. I'm just trying to f= ind an immediate=20 fail-safe until I can really spend the time fixing the problem. -Dan On Tue, 17 Mar 2009 14:34:15 -0600 Govinda wrote: > Dan >=20 > Many greater experts here than me, but my first reaction is that if yo= u are [url]ing the data=20 >as it gets into your db's, then that is done. But I am guessing that y= our problem lays in how=20 >you use the data later after you grab it back out and use it somewhere.= . Like within a webdna=20 >context. Find the exact spot where something just broke for you due t= o an "&" char, and notice=20 >if it is a slot held by a var whose value you populate with the data yo= u pull out of a db. You=20 > need to wrap that spot with [url] just like when you stored the data i= n the first place. I can=20 >be more specific if you show an exact example of something that just br= oke. >=20 > -G >=20 > On Mar 17, 2009, at 2:21 PM, Dan Strong wrote: >=20 >> [rant] >> >> Probably a dumb question with a ridiculously easy answer as usual, =20 >> but bear with me... >> >> So over the years, I keep getting bit by these entities (‚ =20 >> etc.) within .db's/fields, etc. Despite strategic [URL]ery and =20 >> [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 =20 >> I have done years ago . Apparently, I must be missing some entities =20 >> despite using what I though were complete lists, otherwise I would =20 >> not have this problem anymore. >> >> So it happened again today on code that has worked for years now I'm =20 >> thoroughly sick of it and want to solve it once and for all. My =20 >> hasty solution? A [convertchars] with 10000 records to catch every =20 >> conceivable stinkin' symbol. >> >> [writefile=3DsymbolConvert.db][!] >> [/!]FROMTO[!] >> [/!][loop start=3D1&end=3D10000]&#[index];[/loo= p]=20 >> [!] >> [/!][/writefile] >> >> My problem? What entities are symbols? Which are blank? and which =20 >> are normal characters (which I 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-=20 >> ish (hence loop 1-10000), but 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 =20 >> w3schools hasn't listed every-single entity, and ultimately, there =20 >> 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 =20 >> things I need to be doing rather than debugging frickin' ampersand =20 >> issues. >> >> How are you all handling this issue? >> >> Thanks, >> -Dan >> >> [/rant] >> >> >> >> >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ 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)
No, I totally hear you and am looking into that now. I'm just trying to f= ind an immediate=20 fail-safe until I can really spend the time fixing the problem. -Dan On Tue, 17 Mar 2009 14:34:15 -0600 Govinda wrote: > Dan >=20 > Many greater experts here than me, but my first reaction is that if yo= u are [url]ing the data=20 >as it gets into your db's, then that is done. But I am guessing that y= our problem lays in how=20 >you use the data later after you grab it back out and use it somewhere.= . Like within a webdna=20 >context. Find the exact spot where something just broke for you due t= o an "&" char, and notice=20 >if it is a slot held by a var whose value you populate with the data yo= u pull out of a db. You=20 > need to wrap that spot with [url] just like when you stored the data i= n the first place. I can=20 >be more specific if you show an exact example of something that just br= oke. >=20 > -G >=20 > On Mar 17, 2009, at 2:21 PM, Dan Strong wrote: >=20 >> [rant] >> >> Probably a dumb question with a ridiculously easy answer as usual, =20 >> but bear with me... >> >> So over the years, I keep getting bit by these entities (‚ =20 >> etc.) within .db's/fields, etc. Despite strategic [url]ery and =20 >> [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 =20 >> I have done years ago . Apparently, I must be missing some entities =20 >> despite using what I though were complete lists, otherwise I would =20 >> not have this problem anymore. >> >> So it happened again today on code that has worked for years now I'm =20 >> thoroughly sick of it and want to solve it once and for all. My =20 >> hasty solution? A [convertchars] with 10000 records to catch every =20 >> conceivable stinkin' symbol. >> >> [writefile=3DsymbolConvert.db][!] >> [/!]FROMTO[!] >> [/!][loop start=3D1&end=3D10000]&#[index];[/loo= p]=20 >> [!] >> [/!][/writefile] >> >> My problem? What entities are symbols? Which are blank? and which =20 >> are normal characters (which I 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-=20 >> ish (hence loop 1-10000), but 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 =20 >> w3schools hasn't listed every-single entity, and ultimately, there =20 >> 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 =20 >> things I need to be doing rather than debugging frickin' ampersand =20 >> issues. >> >> How are you all handling this issue? >> >> Thanks, >> -Dan >> >> [/rant] >> >> >> >> >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ "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:

WCS Newbie question (1997) Mac: LModelDirector bug fix (1997) emailer (1997) unable to launch acgi in WebCat (1997) Emailer choke (1997) Dubble Sku's in a Database (1999) syntax question, not in online refernce (1997) Summarizing on two fields (1998) IPAddress Spoof? (2003) multiple record replace (2001) Help HTML reader (1999) Multiple security dbs (1997) Practice runs ? (1997) Pithy questions on webcommerce & siteedit (1997) Sort Order on a page search (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Modifying databases manually (was Banner DNA) (1997) PCS Frames-Default page is solution! (1997) Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) Requiring that certain fields be completed (1997)