Re: [WebDNA] [convertchars] and ascii problem
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 104729
interpreted = N
texte = This is a multi-part message in MIME format.--------------050207040300040704050901Content-Type: text/plain; charset=ISO-8859-1; format=flowedContent-Transfer-Encoding: quoted-printableSame problem, I thought I had a solution, but...As I have 68 entry to grep, so I tried to put grep in a searchmy_Var=3D=E9=E0=EF=F4[search db=3D^grep_chars.db&nefromdata=3DFindall][founditems][Grep=20search=3D[interpret][from][/interpret]&replace=3D[interpret][to][/interpr=et]][/founditems][my_Var][founditems][/Grep][/founditems][/search]but this doesn't work at all...the result is like[/founditems] =E9a=EF=F4=20[/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/G=rep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep=][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/=Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Gre=p][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][=/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Gr=ep][/Grep][/Grep][/Grep][/Grep][/Grep]=20[/search]any idea...Le 15/02/10 11:33, Lawrence a =E9crit :> 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=20> its 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 =ioea...>> 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--------------050207040300040704050901Content-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: 7bit Same problem, I thought I had a solution, but...
As I have 68 entry to grep, so I tried to put grep in a search
my_Var=éàïô
[search db=^grep_chars.db&nefromdata=Findall]
[founditems][Grepsearch=[interpret][from][/interpret]&replace=[interpret][to][/interpret]][/founditems]
[my_Var]
[founditems][/Grep][/founditems]
[/search]
but this doesn't work at all...
the result is like
[/founditems] éaïô[/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/search]
any idea...
Le 15/02/10 11:33, Lawrence a écrit : hi,
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, soneitherImagemagik...
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
--------------050207040300040704050901--
Associated Messages, from the most recent to the oldest:
This is a multi-part message in MIME format.--------------050207040300040704050901Content-Type: text/plain; charset=ISO-8859-1; format=flowedContent-Transfer-Encoding: quoted-printableSame problem, I thought I had a solution, but...As I have 68 entry to grep, so I tried to put grep in a searchmy_Var=3D=E9=E0=EF=F4[search db=3D^grep_chars.db&nefromdata=3DFindall][founditems][Grep=20search=3D[interpret][from][/interpret]&replace=3D[interpret][to][/interpr=et]][/founditems][my_Var][founditems][/Grep][/founditems][/search]but this doesn't work at all...the result is like[/founditems] =E9a=EF=F4=20[/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/G=rep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep=][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/=Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Gre=p][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][=/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Gr=ep][/Grep][/Grep][/Grep][/Grep][/Grep]=20[/search]any idea...Le 15/02/10 11:33, Lawrence a =E9crit :> 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=20> its 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 =ioea...>> 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--------------050207040300040704050901Content-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: 7bit Same problem, I thought I had a solution, but...
As I have 68 entry to grep, so I tried to put grep in a search
my_Var=éàïô
[search db=^grep_chars.db&nefromdata=Findall]
[founditems][Grepsearch=[interpret][from][/interpret]&replace=[interpret][to][/interpret]][/founditems]
[my_Var]
[founditems][/Grep][/founditems]
[/search]
but this doesn't work at all...
the result is like
[/founditems] éaïô[/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/Grep][/search]
any idea...
Le 15/02/10 11:33, Lawrence a écrit : hi,
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, soneitherImagemagik...
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
--------------050207040300040704050901--
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:
[protect] on NT? (1997)
Separate SSL Server (1997)
WC1.6 to WC2 date formatting (1997)
Searching for ALL / empty form field (1997)
color (1999)
different show next (1997)
unable to launch acgi in WebCat (1997)
Size limit for tmpl editor ? (1997)
Gettting IPAddress (2001)
[delete] problem (1997)
searching twice on same field (1998)
Not really WebCat (1997)
[WebDNA] File Upload Problem (2009)
shownext not showing next...still r2 (1997)
[WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012)
Replacing the db file (2000)
Purchase Plugin Missing (1996)
WebCat2: Formulas.db question (1997)
shipping costs (2000)
Showif for mulitple variations (1997)