[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.--------------010501030303080800030206Content-Type: text/plain; charset=ISO-8859-1; format=flowedContent-Transfer-Encoding: quoted-printablehi,here is my problem...I need to create folders on the server using a name the clients save=20through a form. Then clients upload images, and the Imagemagick make its=20manipulations. (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=3Debut when I apply the ascii convert I get very strange character back=20like : 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=20ascii 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=20apply plenty of [grep] for each kind of character...As any body got an idea of what can be wrong or any other solution...ThanksLawrence--------------010501030303080800030206Content-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: 7bithi,
here is my problem...
I need to create folders on the server using a name the clients savethrough a form. Then clients upload images, and the Imagemagick makeits manipulations. (no problem yet)
My problem is if people use non ASCII caracters like : éàï or <spaces>
Because then [MOVEFILE] won't process, so neitherImagemagik...
So I created a database to convert chars
à=a; ï=i; é=e
but when I apply the ascii convert I get very strange character backlike : 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 nonascii 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 toapply 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:
This is a multi-part message in MIME format.--------------010501030303080800030206Content-Type: text/plain; charset=ISO-8859-1; format=flowedContent-Transfer-Encoding: quoted-printablehi,here is my problem...I need to create folders on the server using a name the clients save=20through a form. Then clients upload images, and the Imagemagick make its=20manipulations. (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=3Debut when I apply the ascii convert I get very strange character back=20like : 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=20ascii 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=20apply plenty of [grep] for each kind of character...As any body got an idea of what can be wrong or any other solution...ThanksLawrence--------------010501030303080800030206Content-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: 7bithi,
here is my problem...
I need to create folders on the server using a name the clients savethrough a form. Then clients upload images, and the Imagemagick makeits manipulations. (no problem yet)
My problem is if people use non ASCII caracters like : éàï or <spaces>
Because then [movefile] won't process, so neitherImagemagik...
So I created a database to convert chars
à=a; ï=i; é=e
but when I apply the ascii convert I get very strange character backlike : 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 nonascii 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 toapply 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:
Re:Help name our technology! (1997)
E-mail Attachments (1997)
Reversed words (1997)
More ways to search the docs (1998)
2.0Beta Command Ref (can't find this instruction) (1997)
passing search criteria (1997)
Hiding HTML and page breaks (1997)
Search with Special Chars (1997)
Smart caching problems with 2.1b3? (1997)
Help! WebCat2 bug (1997)
How long until WebDNA makes the list? :( (2004)
WebCat with WebTen (1998)
How reliable is WebDNA? (2004)
Buggy Code (1998)
Closing Databases (1998)
WebCatalog NT beta 18 now available (1997)
Calendar (1997)
Webmerchant + Hubby (1998)
Hummm .... (2002)
WC2b12: Yes, Formulas.db is for real (1997)