Re: Annoying character on writefile...
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 60197
interpreted = N
texte = I had weird characters show up on a [writefile] that was making me crazy tofind a solution. The characters would show up when the HTML was displayed.The fix was actually quite simple. I put the following code in the headerand never saw them again.
Sal D'Anna-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf OfStephen ReissSent: Wednesday, November 24, 2004 10:24 PMTo: WebDNA TalkSubject: Re: Annoying character on writefile...Nor did I say there was a bug in WebCat.The problem is the data that is being captured, not the code, or the program. That is why I use a grep expression to scrub the character out.All of our files are created in Unix from start to finish, it is not a matter of moving from one environment to another, it is a question of garbage in.>I know, I was actually posting my response for the benefit of the >person who claimed that writefile has a bug in it. Some people fail >to understand the cause of webdna's behavior in certain situations, >that's all ... :)>>>I never claimed otherwise! :D>>>>>>----- Original Message ----- From: "Kenneth Grome"
>>To: "WebDNA Talk" >>Sent: Wednesday, November 24, 2004 7:00 PM>>Subject: Re: Annoying character on writefile...>>>>>You should expect this to happen, that's what it's supposed to do. >>>Just because you don't see carriage return characters when >>>creating a file on Windows or on Mac OS 9 does not mean they are >>>not there!>>>>>>Mac OS 9 uses CR's as new line characters. Windows uses a CR-LF >>>combination. UNIX uses only LF's.>>>>>>So when you put a Windows or Mac OS 9 file (with invisible CR's in >>>it) on a server running UNIX, the CR's are still in the files, so >>>of course they will be written to the new file! Why would you >>>expect anything else?>>>>>>It's not a bug in the webdna software, it's a bug in the human >>>software ... :)>>>>>>Sincerely,>>>Kenneth Grome>>>www.kengrome.com>>>>>>>Actually, we get it too. It is when we save the file that does >>>>the WRITEFILE. If this file is created on a PC and the file is >>>>used on a UNIX server. It has to do with the CR or LF not being >>>>formatted correctly.>>>>>>>>>>>>----- Original Message ----- From: "Kenneth Grome" >>>>To: "WebDNA Talk" >>>>Sent: Wednesday, November 24, 2004 6:20 PM>>>>Subject: Re: Annoying character on writefile...>>>>>>>>> >I get that character with nearly everything I write to file or >>>>>even to >data base. I am not sure where it comes from, but it >>>>>gets there by >itself, not from being added.>>>>>>>>>>Where does it appear in the file? In the middle somewhere? Or >>>>>always at the beginning? Or always at the end?>>>>>>>>>>Sorry, I do not believe that webdna is doing ths without your >>>>>help. No one else has ever complained about this -- you're the >>>>>first -- yet WebDNA for OS X has been out for ages already ... >>>>>and I don't think it is very likely that all the other >>>>>webdna/osx users would have been able to ignore this issue if it >>>>>were actually a bug.>>>>>>>>>>Of course I could be wrong about this, but I suspect your coding >>>>>techniques far more than a possible bug. If you write code >>>>>like this:>>>>>>>>>>[writefile]>>>>>skg f,ksbdf blkvbsbgvbsdf vbsldfbls>>>>>[/writefile]>>>>>>>>>>... you're putting two of those characters in there yourself, >>>>>one at the beginning and one at the end of the file. The proper >>>>>way to code a writefile context is like this:>>>>>>>>>>[writefile]skg f,ksbdf blkvbsbgvbsdf vbsldfbls[/writefile]>>>>>>>>>>>>>>>>>>>>By the way, you also claim that these characters are being >>>>>written to your database files, but I fail to understand how >>>>>this can happen either. Please post some of your code to show us >>>>>how these characters are they being written to your database >>>>>files, then maybe we can figure out what's really going on ...>>>>>>>>>>Sincerely,>>>>>Kenneth Grome>>>>>www.kengrome.com>>>>>>>>>>>>>>>>>>>>>I never had the problem when I was on Mac OS 9, but under OS X, >>>>>>and now Linux, I have it all the time. I suspect a connection.>>>>>>>>>>>>>If you don't want the character in there, all you have to do >>>>>>>is make sure it does not appear in your writefile context. >>>>>>>WebDNA only writes what you tell it to write, it does not add >>>>>>>stray characters on its own ...>>>>>>>>>>>>>>Sincerely,>>>>>>>Kenneth Grome>>>>>>>www.kengrome.com>>>>>>>>>>>>>>>[grep search=[ ]&replace=][/grep]>>>>>>>>>>>>>>>>Is what I do, but I would love to find an answer to keeping >>>>>>>>the character out of there in the first place.>>>>>>>>>>>>>>>>>Hi>>>>>>>>>>>>>>>>>>Does anyone know hwo to get rid of or conver the following >>>>>>>>>character during a writefile ? I am trying to write >>>>>>>>>database information to an xml document to feed a flash app >>>>>>>>>but it is bugging out with this character, I have also run >>>>>>>>>into difficulties with it before when generating an html >>>>>>>>>mail by write a file after the mail has been created.>>>>>>>>>>>>>>>>>>Any suggestions are very welcome.>>>>>>>>>>>>>>>>>>Thanks>>>>>>>>>Alan>>>>>>-->>>>>>------------------------------------------------------------->>>This message is sent to you because you are subscribed to>>> the mailing list .>>>To unsubscribe, E-mail to: >>>To switch to the DIGEST mode, E-mail to >>>>>>Web Archive of this list is at: http://webdna.smithmicro.com/>>>>>>------------------------------------------------------------->>This message is sent to you because you are subscribed to>> the mailing list .>>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>>>Web Archive of this list is at: http://webdna.smithmicro.com/>>>-->>Sincerely,>Kenneth Grome>www.kengrome.com>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I had weird characters show up on a [writefile] that was making me crazy tofind a solution. The characters would show up when the HTML was displayed.The fix was actually quite simple. I put the following code in the headerand never saw them again.Sal D'Anna-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf OfStephen ReissSent: Wednesday, November 24, 2004 10:24 PMTo: WebDNA TalkSubject: Re: Annoying character on writefile...Nor did I say there was a bug in WebCat.The problem is the data that is being captured, not the code, or the program. That is why I use a grep expression to scrub the character out.All of our files are created in Unix from start to finish, it is not a matter of moving from one environment to another, it is a question of garbage in.>I know, I was actually posting my response for the benefit of the >person who claimed that writefile has a bug in it. Some people fail >to understand the cause of webdna's behavior in certain situations, >that's all ... :)>>>I never claimed otherwise! :D>>>>>>----- Original Message ----- From: "Kenneth Grome" >>To: "WebDNA Talk" >>Sent: Wednesday, November 24, 2004 7:00 PM>>Subject: Re: Annoying character on writefile...>>>>>You should expect this to happen, that's what it's supposed to do. >>>Just because you don't see carriage return characters when >>>creating a file on Windows or on Mac OS 9 does not mean they are >>>not there!>>>>>>Mac OS 9 uses CR's as new line characters. Windows uses a CR-LF >>>combination. UNIX uses only LF's.>>>>>>So when you put a Windows or Mac OS 9 file (with invisible CR's in >>>it) on a server running UNIX, the CR's are still in the files, so >>>of course they will be written to the new file! Why would you >>>expect anything else?>>>>>>It's not a bug in the webdna software, it's a bug in the human >>>software ... :)>>>>>>Sincerely,>>>Kenneth Grome>>>www.kengrome.com>>>>>>>Actually, we get it too. It is when we save the file that does >>>>the WRITEFILE. If this file is created on a PC and the file is >>>>used on a UNIX server. It has to do with the CR or LF not being >>>>formatted correctly.>>>>>>>>>>>>----- Original Message ----- From: "Kenneth Grome" >>>>To: "WebDNA Talk" >>>>Sent: Wednesday, November 24, 2004 6:20 PM>>>>Subject: Re: Annoying character on writefile...>>>>>>>>> >I get that character with nearly everything I write to file or >>>>>even to >data base. I am not sure where it comes from, but it >>>>>gets there by >itself, not from being added.>>>>>>>>>>Where does it appear in the file? In the middle somewhere? Or >>>>>always at the beginning? Or always at the end?>>>>>>>>>>Sorry, I do not believe that webdna is doing ths without your >>>>>help. No one else has ever complained about this -- you're the >>>>>first -- yet WebDNA for OS X has been out for ages already ... >>>>>and I don't think it is very likely that all the other >>>>>webdna/osx users would have been able to ignore this issue if it >>>>>were actually a bug.>>>>>>>>>>Of course I could be wrong about this, but I suspect your coding >>>>>techniques far more than a possible bug. If you write code >>>>>like this:>>>>>>>>>>[writefile]>>>>>skg f,ksbdf blkvbsbgvbsdf vbsldfbls>>>>>[/writefile]>>>>>>>>>>... you're putting two of those characters in there yourself, >>>>>one at the beginning and one at the end of the file. The proper >>>>>way to code a writefile context is like this:>>>>>>>>>>[writefile]skg f,ksbdf blkvbsbgvbsdf vbsldfbls[/writefile]>>>>>>>>>>>>>>>>>>>>By the way, you also claim that these characters are being >>>>>written to your database files, but I fail to understand how >>>>>this can happen either. Please post some of your code to show us >>>>>how these characters are they being written to your database >>>>>files, then maybe we can figure out what's really going on ...>>>>>>>>>>Sincerely,>>>>>Kenneth Grome>>>>>www.kengrome.com>>>>>>>>>>>>>>>>>>>>>I never had the problem when I was on Mac OS 9, but under OS X, >>>>>>and now Linux, I have it all the time. I suspect a connection.>>>>>>>>>>>>>If you don't want the character in there, all you have to do >>>>>>>is make sure it does not appear in your writefile context. >>>>>>>WebDNA only writes what you tell it to write, it does not add >>>>>>>stray characters on its own ...>>>>>>>>>>>>>>Sincerely,>>>>>>>Kenneth Grome>>>>>>>www.kengrome.com>>>>>>>>>>>>>>>[grep search=[ ]&replace=][/grep]>>>>>>>>>>>>>>>>Is what I do, but I would love to find an answer to keeping >>>>>>>>the character out of there in the first place.>>>>>>>>>>>>>>>>>Hi>>>>>>>>>>>>>>>>>>Does anyone know hwo to get rid of or conver the following >>>>>>>>>character during a writefile ? I am trying to write >>>>>>>>>database information to an xml document to feed a flash app >>>>>>>>>but it is bugging out with this character, I have also run >>>>>>>>>into difficulties with it before when generating an html >>>>>>>>>mail by write a file after the mail has been created.>>>>>>>>>>>>>>>>>>Any suggestions are very welcome.>>>>>>>>>>>>>>>>>>Thanks>>>>>>>>>Alan>>>>>>-->>>>>>------------------------------------------------------------->>>This message is sent to you because you are subscribed to>>> the mailing list .>>>To unsubscribe, E-mail to: >>>To switch to the DIGEST mode, E-mail to >>>>>>Web Archive of this list is at: http://webdna.smithmicro.com/>>>>>>------------------------------------------------------------->>This message is sent to you because you are subscribed to>> the mailing list .>>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>>>Web Archive of this list is at: http://webdna.smithmicro.com/>>>-->>Sincerely,>Kenneth Grome>www.kengrome.com>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Sal D'Anna"
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:
I have observed and I am gone. (1998)
Re:E-Mailer (WebCatb15acgiMac) (1997)
FYI: virus alert (1996)
stuck time (1998)
[WebDNA] showif with empty variable (2015)
$append (1998)
# fields limited? (1997)
Search returns all, not 20 (1997)
Non expiring cookies again (*sorry*) (1999)
[WebDNA] Hosting for a customer of mine (2012)
Num Sort Descending (OT) (2004)
WebCat2: Formulas.db question (1997)
Relay link (2002)
NT Woes (1997)
syntax question, not in online refernce (1997)
writing db to disk (1997)
AddLineItem Problem (1997)
taxTotal, too (1997)
Webcat table size. (2001)
[WebDNA] hide [DOS] command strings on resulting page (2016)