Re: & in Lookups

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15731
interpreted = N
texte = This may be a bug in 2.01. It's being tested and if it's a problem, will be fixed in 2.1. In the mean time, you can always use [search] instead of [lookup] and do a [showif [numfound]=0] for the notFound message. This isn't as compact, but should give the desired results. Thanks.John>At 9:16 AM -0800 12/18/97, John Hill is rumored to have typed: > > >> >> [LOOKUP >> >> >>db=legal.db&value=[sku]&lookinfield=SKU&ReturnField=Legal&NotFound=[URL]Some >> > >>> legal text including © and ®[/URL]] >> > >> >I get : >> >Some%20legal%20text%20.... >> >Not quite what I need. >> > >> >> The %20's are converted back to space chars by WebCatalog. What you've >>shown above looks correct. However, if you are actually looking for the >>copyright character (©) then you should put that in the text and it will >>be URLized. If the HTML equivalent (©) is in your text then leave it >>the way you have it. > >The %20s are not converted back, or else I wouldn't see them on my web page. > >I've tried just about every permutation of the advice given. [URL][/URL] >keeps the %20s. Putting © in the string truncates the string. >Putting © and ® with [CONVERTCHARS] doesn't work because Webcat converts >them to © and ® and then chokes on the ampersand. > >Putting in the higher ASCII © works, but ® displays as a line (¨). The >only way to get the ® symbol is to say ®. > >It's like the LOOKUP tage is expecting another argument after the & so it >ignore whatever comes next. > >Michael > >Michael Winston *By Phone!: (503)/652/8815 x341 >Internet Coordinator *By e-mail!: michaelw@dhorse.com >Dark Horse Comics, Inc. *By web!: http://www.dhorse.com/ John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
This may be a bug in 2.01. It's being tested and if it's a problem, will be fixed in 2.1. In the mean time, you can always use [search] instead of [lookup] and do a [showif [numfound]=0] for the notFound message. This isn't as compact, but should give the desired results. Thanks.John>At 9:16 AM -0800 12/18/97, John Hill is rumored to have typed: > > >> >> [LOOKUP >> >> >>db=legal.db&value=[sku]&lookinfield=SKU&ReturnField=Legal&NotFound=[url]Some >> > >>> legal text including © and ®[/URL]] >> > >> >I get : >> >Some%20legal%20text%20.... >> >Not quite what I need. >> > >> >> The %20's are converted back to space chars by WebCatalog. What you've >>shown above looks correct. However, if you are actually looking for the >>copyright character (©) then you should put that in the text and it will >>be URLized. If the HTML equivalent (©) is in your text then leave it >>the way you have it. > >The %20s are not converted back, or else I wouldn't see them on my web page. > >I've tried just about every permutation of the advice given. [url][/URL] >keeps the %20s. Putting © in the string truncates the string. >Putting © and ® with [convertchars] doesn't work because Webcat converts >them to © and ® and then chokes on the ampersand. > >Putting in the higher ASCII © works, but ® displays as a line (¨). The >only way to get the ® symbol is to say ®. > >It's like the LOOKUP tage is expecting another argument after the & so it >ignore whatever comes next. > >Michael > >Michael Winston *By Phone!: (503)/652/8815 x341 >Internet Coordinator *By e-mail!: michaelw@dhorse.com >Dark Horse Comics, Inc. *By web!: http://www.dhorse.com/ John A. Hill, V.P. Marketing Pacific Coast Software eCommerce / Web Developer Tools http://www.smithmicro.com John Hill

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:

Reminder... (2003) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) WebCat2b13MacPlugIn - [include] (1997) Summing fields (1997) [text] prob (1998) OT JavaScript question (1999) Suffix Mapping (1997) Running _every_ page through WebCat-error.html (1997) flushdatabases (1997) [WebDNA] Rewrite url (2013) Lock out multiple users with same password? (1999) relogin same user? (1998) 2 databases (1998) WebCat and POS/OE (2000) Summary search -- speed (1997) Web Catalog 2 demo (1997) Highlighting words found in a keyword search (2003) I'm new be kind (1997) Buying sans cart (1997) WebCat2 - [format thousands] (1997)