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:

Execute Applescript (1997) Suggestion: appendfounditems (2002) WC3 and SSL on NT (1998) Running _every_ page through WebCat ? (1997) Applescript error (1998) Q on the best way to set up a security function so users can edit records (1999) Look out kiwis! (2003) RE: 2.1 pricing? (1998) WebDNA Search Results ... Upper Limit? (2006) Webcat 3 Bug?!?! Netscape + Protect + Posted Form (1998) Cart Numbers (1997) Pass a form (2003) Re:Running 2 two WebCatalog.acgi's (1996) WebCat2b12--[searchstring] bug (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Another question (1997) HomePage Caution (1997) test (2000) For those of you not on the WebCatalog Beta... (1997) Running 2 two WebCatalog.acgi's (1996)