Re: [WebDNA] [convertchars] and ascii problem

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104741
interpreted = N
texte = Lawrence wrote: > hi, > here is my problem... > I need to create folders on the server using a name the clients save > through a form. Then clients upload images, and the Imagemagick make its > manipulations. (no problem yet) > My problem is if people use non ASCII caracters like : éàï or > Because then [MOVEFILE] won't process, so neither Imagemagik... > > So I created a database to convert chars > à=a; ï=i; é=e > but when I apply the ascii convert I get very strange character back > like : i�i�i�i� > I use UTF8 encoding in the pages and the same for the database. > I tried to append the name of the folder in the db replacing the non > ascii characters > ®ate_url=[ConvertChars db=^ascii.db][Nom_regate][/ConvertChars] > but instead of ïôéà I have in the db:i�i�i�i� and I would like ioea... > > I found a solution using [grep] but it's not very clean, and I need to > apply plenty of [grep] for each kind of character... > > As any body got an idea of what can be wrong or any other solution... > Thanks > Lawrence what about simply something like: [grep search=[^A-Za-z_-]&replace=][fnames][/grep] For cleaning your input. Donovan -- Donovan Brooke Euca Design Center [Practical-Ethical-Efficient] www.euca.us egg.bz artglass-forum.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [convertchars] and ascii problem [solved] (Lawrence 2010)
  2. Re: [WebDNA] [convertchars] and ascii problem (Donovan Brooke 2010)
  3. Re: [WebDNA] [convertchars] and ascii problem ("Terry Wilson" 2010)
  4. Re: [WebDNA] [convertchars] and ascii problem (Donovan Brooke 2010)
  5. Re: [WebDNA] [convertchars] and ascii problem (Tom Duke 2010)
  6. Re: [WebDNA] [convertchars] and ascii problem (Lawrence 2010)
  7. Re: [WebDNA] [convertchars] and ascii problem (Tom Duke 2010)
  8. Re: [WebDNA] [convertchars] and ascii problem (Lawrence 2010)
  9. [WebDNA] [convertchars] and ascii problem (Lawrence 2010)
Lawrence wrote: > hi, > here is my problem... > I need to create folders on the server using a name the clients save > through a form. Then clients upload images, and the Imagemagick make its > manipulations. (no problem yet) > My problem is if people use non ASCII caracters like : éàï or > Because then [movefile] won't process, so neither Imagemagik... > > So I created a database to convert chars > à=a; ï=i; é=e > but when I apply the ascii convert I get very strange character back > like : i�i�i�i� > I use UTF8 encoding in the pages and the same for the database. > I tried to append the name of the folder in the db replacing the non > ascii characters > ®ate_url=[ConvertChars db=^ascii.db][Nom_regate][/ConvertChars] > but instead of ïôéà I have in the db:i�i�i�i� and I would like ioea... > > I found a solution using [grep] but it's not very clean, and I need to > apply plenty of [grep] for each kind of character... > > As any body got an idea of what can be wrong or any other solution... > Thanks > Lawrence what about simply something like: [grep search=[^A-Za-z_-]&replace=][fnames][/grep] For cleaning your input. Donovan -- Donovan Brooke Euca Design Center [Practical-Ethical-Efficient] www.euca.us egg.bz artglass-forum.com Donovan Brooke

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:

!!!!!!!!!!String Search!!!!!!!!!!!!!!!!!! (2001) Strange intermittent WebDNA problems (2008) Sorting error (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) shared_POP and archiving your own mailing list (2003) [shownext max=?] armed (1997) FTP FOLDER PERMISSIONS (2004) simple answer? [hideif] (1997) [taxrate] question (1997) PCS Frames-Default page is solution! (1997) OT: Quick poll (2003) Document Contains No Data! (1997) Signal Raised Error (1997) Re2: frames & carts (1997) simple answer? [hideif] (1997) Great product and great job ! (1997) WebDNA CAPTCHA (2008) [convertchars] on potential malicious input even in a link? (2000) Migrating From One Server To Another (2003) Error: this shopping cart has already been submittedm (2004)