Re: Accentuated and non-English letters

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44964
interpreted = N
texte = >Here's a problem that's been bothering me for a while: > >As most of you probably know, ascii was invented by a couple of >second class yankee computer would-be-experts late one night over >the sixth round of beer at their local strip joint. Over the years >various people have attempted to sort out the mess those guys made - >usually ending up making matters even worse :-( > >Does anybody know of a simple and - above all - reliable way to use >letters like é, ø, ß etc. etc. in WebCat searches?Not exactly, but I have a solution that will work 100% of the time in all your searches:You can use convertchars to convert all those high ASCII characters to standard keyboard characters -- so none of the letters like é, ø, ß etc. are allowed to be stored in your db's. Then do the exact same conversions to the values your visitors enter into their search forms -- so your searches *also* use only the standard 26-letter character set. Then your search values will *always* match your db values.Yes, this will mean that when you display your db values on the web page, letters like é, ø, ß etc. will not appear, instead they will be replaced by their convertchars equivalents. But if this is a minor issue to you, then my solution will work just fine in terms of fixing all your search problems which are related to unusual characters.I use a similar technique when allowing people to enter phone numbers into my forms. Since they never seem to be able to type their phone numbers in exactly the same way twice, I just let them type their phone numbers in any format they feel like typing them. Then I remove all characters except the numeric digits before applying the resulting values to my search, append, replace and delete contexts. Yes, the phone numbers lose whatever formatting the visitor happened to give them in my web forms, but that's a minor inconvenience considering the fact that my searches always work on my phone number fields now ...:) Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Accentuated and non-English letters (Tom Duke 2002)
  2. Re: Accentuated and non-English letters (Kenneth Grome 2002)
  3. Re: Accentuated and non-English letters (Frank Nordberg 2002)
  4. Re: Accentuated and non-English letters (Nitai @ ComputerOil 2002)
  5. Re: Accentuated and non-English letters (John Peacock 2002)
  6. Accentuated and non-English letters (Frank Nordberg 2002)
>Here's a problem that's been bothering me for a while: > >As most of you probably know, ascii was invented by a couple of >second class yankee computer would-be-experts late one night over >the sixth round of beer at their local strip joint. Over the years >various people have attempted to sort out the mess those guys made - >usually ending up making matters even worse :-( > >Does anybody know of a simple and - above all - reliable way to use >letters like é, ø, ß etc. etc. in WebCat searches?Not exactly, but I have a solution that will work 100% of the time in all your searches:You can use convertchars to convert all those high ASCII characters to standard keyboard characters -- so none of the letters like é, ø, ß etc. are allowed to be stored in your db's. Then do the exact same conversions to the values your visitors enter into their search forms -- so your searches *also* use only the standard 26-letter character set. Then your search values will *always* match your db values.Yes, this will mean that when you display your db values on the web page, letters like é, ø, ß etc. will not appear, instead they will be replaced by their convertchars equivalents. But if this is a minor issue to you, then my solution will work just fine in terms of fixing all your search problems which are related to unusual characters.I use a similar technique when allowing people to enter phone numbers into my forms. Since they never seem to be able to type their phone numbers in exactly the same way twice, I just let them type their phone numbers in any format they feel like typing them. Then I remove all characters except the numeric digits before applying the resulting values to my search, append, replace and delete contexts. Yes, the phone numbers lose whatever formatting the visitor happened to give them in my web forms, but that's a minor inconvenience considering the fact that my searches always work on my phone number fields now ...:) Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Kenneth Grome

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:

WebCat Beta NT 18 (1997) show all problem (1997) Don't know if this is a sily question... (2003) Date search bug (1998) UN-WANTED character conversion (1999) Exclude by date - multiple (1997) update on include (1997) WebCatalog/Mac 2.1b2 New Features (1997) Price Change (2000) [WebDNA] WebDNA code displaying on page (2012) ThreadMem ignored? (1998) problem: search crashes webstar (1997) Stat analyzer (1997) New to WebDNA.. Dreamweaver Extensions? (2005) [WebDNA] a major shift in strategy? (2008) Error:Too many nested [xxx] contexts (1997) Emailer... DOA but still twitching (2007) [WebDNA] merging multiple database fields into a new field (2016) [WebDNA] CICADA (2009) OT: Woa MacWorld (2003)