Re: Bug in capitalize ... ?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53483
interpreted = N
texte = Or, if it's something that will occur a lot in the one place, say a 'surname' coming from a database, you could do this: [capitalize][GetChars start=3D1&end=3D1][surname][/GetChars][/capitalize][!] [/!][GetChars start=3D2][surname][/GetChars] Regards, Tim > From: Brian Fries > Reply-To: (WebDNA Talk) > Date: Fri, 17 Oct 2003 09:02:40 -0700 > To: (WebDNA Talk) > Subject: Re: Bug in capitalize ... ? >=20 > HTML entities won't help Ken's problem... >=20 > [capitalize]peña[/capitalize] >=20 > shows up as Pe=D1A, as the "n" in ñ gets capitalized, resulting in > Ñ >=20 > The fix would be for WebDNA to support a delimiters param to > [capitalize]. >=20 > In the meantime, you could play with listwords, specifying the > delimiter, then capitalizing only the first character. >=20 > - brian >=20 > On Friday, October 17, 2003, at 07:04 AM, John Peacock wrote: >=20 >> Kenneth Grome wrote: >>=20 >>> Why does webdna make the letter 'a' uppercase when I put a >>> [capitalize] context around this word? >>> Pe=F1A >>> The =F1 is definitely not the last letter in the word, which means >>> [capitalize] should make it lowercase, not uppercase. >>=20 >> Letters in Latin-1 are limited to a-zA-Z. "=F1" is an extended ASCII >> character in the Latin-1 character set, and hence fouls up the logic >> of [capitalize]. It is a bug only in the sense that it doesn't do >> what _you_ expected it to do. It is not a bug in the sense that >> anyone who expects extended ASCII characters to be handled >> consistently by all browsers is going to be massively mistaken. >>=20 >> Don't use extended ASCII; always use HTML entities (in this case >> ñ). >>=20 >> John >>=20 >> --=20 >> John Peacock >>=20 > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com > -- >=20 >=20 > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [listchars] request (was: Bug in capitalize ... ?) ( Stuart Tremain 2003)
  2. Re: [listchars] request (was: Bug in capitalize ... ?) ( Kenneth Grome 2003)
  3. Re: Bug in capitalize ... ? ( Kenneth Grome 2003)
  4. Re: [listchars] request (was: Bug in capitalize ... ?) ( Brian Fries 2003)
  5. Re: [listchars] request (was: Bug in capitalize ... ?) ( Scott Anderson 2003)
  6. [listchars] request (was: Bug in capitalize ... ?) ( Brian Fries 2003)
  7. Re: Bug in capitalize ... ? ( Stuart Tremain 2003)
  8. Re: Bug in capitalize ... ? ( Kenneth Grome 2003)
  9. Re: Bug in capitalize ... ? ( Tim Robinson 2003)
  10. Re: Bug in capitalize ... ? ( Brian Fries 2003)
  11. Re: Bug in capitalize ... ? ( John Peacock 2003)
  12. Re: Bug in capitalize ... ? ( Glenn Busbin 2003)
  13. Bug in capitalize ... ? ( Kenneth Grome 2003)
Or, if it's something that will occur a lot in the one place, say a 'surname' coming from a database, you could do this: [capitalize][GetChars start=3D1&end=3D1][surname][/GetChars][/capitalize][!] [/!][GetChars start=3D2][surname][/GetChars] Regards, Tim > From: Brian Fries > Reply-To: (WebDNA Talk) > Date: Fri, 17 Oct 2003 09:02:40 -0700 > To: (WebDNA Talk) > Subject: Re: Bug in capitalize ... ? >=20 > HTML entities won't help Ken's problem... >=20 > [capitalize]peña[/capitalize] >=20 > shows up as Pe=D1A, as the "n" in ñ gets capitalized, resulting in > Ñ >=20 > The fix would be for WebDNA to support a delimiters param to > [capitalize]. >=20 > In the meantime, you could play with listwords, specifying the > delimiter, then capitalizing only the first character. >=20 > - brian >=20 > On Friday, October 17, 2003, at 07:04 AM, John Peacock wrote: >=20 >> Kenneth Grome wrote: >>=20 >>> Why does webdna make the letter 'a' uppercase when I put a >>> [capitalize] context around this word? >>> Pe=F1A >>> The =F1 is definitely not the last letter in the word, which means >>> [capitalize] should make it lowercase, not uppercase. >>=20 >> Letters in Latin-1 are limited to a-zA-Z. "=F1" is an extended ASCII >> character in the Latin-1 character set, and hence fouls up the logic >> of [capitalize]. It is a bug only in the sense that it doesn't do >> what _you_ expected it to do. It is not a bug in the sense that >> anyone who expects extended ASCII characters to be handled >> consistently by all browsers is going to be massively mistaken. >>=20 >> Don't use extended ASCII; always use HTML entities (in this case >> ñ). >>=20 >> John >>=20 >> --=20 >> John Peacock >>=20 > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com > -- >=20 >=20 > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Tim Robinson

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 and PIXO (2000) bug in [SendMail] (1997) WebDNA Quitting (2008) Note added to [sendmail] in Docs (2004) [TaxableTotal] - not working with AOL and IE (1997) New Mac Public Beta Available (1997) printing twice? and fix (1997) Strange ShowIf behaviour (2001) emailer (1997) Grep all content between twp p tags (2006) [OT] md5 or sha-1 on OSX (2007) declined orders webmerchant not showing up? (2005) emailer truncates last letter! (1997) NY State Zip Codes & Tax percent (2002) WebCat2: Master Counter snippet (1997) Re:Still More on EudoraPro Email (1998) Email (2000) emailer on Windows Beta 18 (1997) Webcat no longer supported? (2006) Universal root for WC errors? (1997)