[WebDNA] [convertchars] and ascii problem

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104728
interpreted = N
texte = This is a multi-part message in MIME format. --------------010501030303080800030206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable hi, here is my problem... I need to create folders on the server using a name the clients save=20 through a form. Then clients upload images, and the Imagemagick make its=20 manipulations. (no problem yet) My problem is if people use non ASCII caracters like : =E9=E0=EF or Because then [MOVEFILE] won't process, so neither Imagemagik... So I created a database to convert chars =E0=3Da; =EF=3Di; =E9=3De but when I apply the ascii convert I get very strange character back=20 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=20 ascii characters ®ate_url=3D[ConvertChars db=3D^ascii.db][Nom_regate][/ConvertChars] but instead of =EF=F4=E9=E0 I have in the db:i?i?i?i? and I would like io= ea... I found a solution using [grep] but it's not very clean, and I need to=20 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 --------------010501030303080800030206 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 <spaces>
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
&regate_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
--------------010501030303080800030206-- 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)
This is a multi-part message in MIME format. --------------010501030303080800030206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable hi, here is my problem... I need to create folders on the server using a name the clients save=20 through a form. Then clients upload images, and the Imagemagick make its=20 manipulations. (no problem yet) My problem is if people use non ASCII caracters like : =E9=E0=EF or Because then [movefile] won't process, so neither Imagemagik... So I created a database to convert chars =E0=3Da; =EF=3Di; =E9=3De but when I apply the ascii convert I get very strange character back=20 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=20 ascii characters ®ate_url=3D[ConvertChars db=3D^ascii.db][Nom_regate][/ConvertChars] but instead of =EF=F4=E9=E0 I have in the db:i?i?i?i? and I would like io= ea... I found a solution using [grep] but it's not very clean, and I need to=20 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 --------------010501030303080800030206 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 <spaces>
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
&regate_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
--------------010501030303080800030206-- Lawrence

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:

Displaying Location (1997) Rhapsody? (1997) NT version (1997) shipcost - fed up with the old way (1998) multiple databases (1997) Country & Ship-to address & other fields ? (1997) Running _every_ page through WebCat ? (1997) two unique banners on one page (1997) changing boxes (2008) WebCat2: Items xx to xx shown, etc. (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Cookie Crumble (1998) listfiles-looking for slick solution (1997) [WebDNA] TCPconnect code snippet needed (2008) [ShowNext] (1997) Possible Bug in 2.0b15.acgi (1997) [showif]/[hideif] question (1997) Extended [ConvertChars] (1997) Carts in Admin folder? (1999) acrobat -> wc (1998)