Grep to convert characters to html entities

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 67589
interpreted = N
texte = Hi all, I am trying to convert special characters to their hex html entities = before storing a string into a database. I have found a php grep string = which will do this but cannot get a working WebDNA equivalent:- php code : My best (non-working) attempt so far is : [grep search=3D([^\%09\%0A\%0D\%20-\%7F])&replace=3D%26#[url]\1[/url];]& = =E9 =A3 [/grep] But I can't seem to get the [url] code in the 'replace' to generate the = hex code for the character. Any grep experts got any ideas ? - Tom ------------------------------------------------------------- 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: Grep to convert characters to html entities ( "Tom Duke" 2006)
  2. Re: Grep to convert characters to html entities ( devaulw@onebox.com 2006)
  3. Re: Grep to convert characters to html entities ( "Tom Duke" 2006)
  4. Re: Grep to convert characters to html entities ( Stuart Tremain 2006)
  5. Re: Grep to convert characters to html entities ( Stuart Tremain 2006)
  6. Re: Grep to convert characters to html entities ( "Tom Duke" 2006)
  7. Re: Grep to convert characters to html entities ( Stuart Tremain 2006)
  8. Grep to convert characters to html entities ( "Tom Duke" 2006)
Hi all, I am trying to convert special characters to their hex html entities = before storing a string into a database. I have found a php grep string = which will do this but cannot get a working WebDNA equivalent:- php code : My best (non-working) attempt so far is : [grep search=3D([^\%09\%0A\%0D\%20-\%7F])&replace=3D%26#[url]\1[/url];]& = =E9 =A3 [/grep] But I can't seem to get the [url] code in the 'replace' to generate the = hex code for the character. Any grep experts got any ideas ? - Tom ------------------------------------------------------------- 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/ "Tom Duke"

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:

Storebuilder SOLVED!!!!!!! (2003) Header info in content (1998) Referrer or maybe another way..... (2005) WebCommerce: Folder organization ? (1997) includes and cart numbers (1997) Webcatalog/NT dbserver crashing. (2000) Trigger Validation Text Broken (2003) Emailer 1.0.2 Conflicts? (1998) PSC recommends what date format yr 2000??? (1997) RE: Is there a 'does not contain' comparison? (1999) converted seed value? (1998) [isfile] ? (1997) Re2: frames & carts (1997) Foreign Chars ( יאצה and so on) (1998) [item] appears after 'remove last item' ... (1997) Redirection based upon form variable (was: MOOOOOO) (2000) what include am I using! (2005) Help name our technology! I found it (1997) [Announce]: Web server security and password protection (1997) Looking up two prices in database? (1997)