Hi
I=92ve gone back through the list history on this and tried all the =fixes but this one=92s stumping me.
I=92m getting bad characters when writing to database (replace), in the =form of %0B and %1D. [Content] field is from a textarea (with =Innova 4.2 RTE) within a form post with enctype multipart/form-data =96 =which it needs to be for pic uploading purposes. Oddly it=92s also =adding in heaps of spaces as well although I=92ve no idea where these =are coming from as they=92re not in the RTE.
I have tried =96 with no success =96 the following;
1/ Grep=92s;[grep =search=3D%0B|%1D&replace=3D][content][/grep]
[grep search=3D[%0B]|[%1D]&replace=3D][content][/grep]
Have also tried grep=92ing the content prior to writing it in an effort =to clean it before it tries to write but no difference. Have also tried =grep=92ing justs the %1D by itself, again with no success. Have tried =with [url] tags around the [content] but no difference either.
Since there=92s a thread about Linux servers & not using grep I then =went to convertchars as follows;
2/ Convertchars[table =name=3Dconvert&fields=3Dfrom,to]
%0A
%0B
%0D
%1D
[/table]
(Format of table is =93value=94,tab,=94=94)
[convertchars table=3Dconvert][content][/convertchars]
This works for the %0B but not the %1D. I=92ve tried moving the %1D =record to the first line in the table but that didn=92t make a =difference either.
Have also tried with [url] tags around the [content] but this makes the =problem worse.
Server setup is Apache/2.2.15 (Unix) on Linux www2 2.6.28-19-server =#66-Ubuntu with WebDNA version 6.2 (unix-Linux Intel Apache Module version =6.2).
I note that the save state of the database is also changed from Unix(LF) =to ClassicMac(CR) after the db write =96 for no reason whatsoever. And =its doing it with grep and convertchars. It doesn=92t change the save =state if its set to Windows(CRLF).
All help is of course, gratefully appreciated.
Thanks,
<image.gif>
|
Hi
I=92ve gone back through the list history on this and tried all the =fixes but this one=92s stumping me.
I=92m getting bad characters when writing to database (replace), in the =form of %0B and %1D. [Content] field is from a textarea (with =Innova 4.2 RTE) within a form post with enctype multipart/form-data =96 =which it needs to be for pic uploading purposes. Oddly it=92s also =adding in heaps of spaces as well although I=92ve no idea where these =are coming from as they=92re not in the RTE.
I have tried =96 with no success =96 the following;
1/ Grep=92s;[grep =search=3D%0B|%1D&replace=3D][content][/grep]
[grep search=3D[%0B]|[%1D]&replace=3D][content][/grep]
Have also tried grep=92ing the content prior to writing it in an effort =to clean it before it tries to write but no difference. Have also tried =grep=92ing justs the %1D by itself, again with no success. Have tried =with [url] tags around the [content] but no difference either.
Since there=92s a thread about Linux servers & not using grep I then =went to convertchars as follows;
2/ Convertchars[table =name=3Dconvert&fields=3Dfrom,to]
%0A
%0B
%0D
%1D
[/table]
(Format of table is =93value=94,tab,=94=94)
[convertchars table=3Dconvert][content][/convertchars]
This works for the %0B but not the %1D. I=92ve tried moving the %1D =record to the first line in the table but that didn=92t make a =difference either.
Have also tried with [url] tags around the [content] but this makes the =problem worse.
Server setup is Apache/2.2.15 (Unix) on Linux www2 2.6.28-19-server =#66-Ubuntu with WebDNA version 6.2 (unix-Linux Intel Apache Module version =6.2).
I note that the save state of the database is also changed from Unix(LF) =to ClassicMac(CR) after the db write =96 for no reason whatsoever. And =its doing it with grep and convertchars. It doesn=92t change the save =state if its set to Windows(CRLF).
All help is of course, gratefully appreciated.
Thanks,
<image.gif>
DOWNLOAD WEBDNA NOW!
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...