Re: Null Characters
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 63414
interpreted = N
texte = Clint Davis wrote:> The following code returns a simple "1". None of the HTML after the [grep]> code is rendered. The ascii value of the character is: x00> > [grep search=x00&replace=]1
07[/grep]> > I would be happy to post a sample file if it would help.WebCatalog only understands ASCII text files, which specifically prohibits embedded NUL characters. The best thing to do is to ask the client to fix their export so that they export text only. To quote your original message:> Unfortunately, the DB contains null characters between every> normal character.That means they are saving the file as UTF8 instead of ASCII text. If the client is unable to provide non-UTF8 files, you will have to use some other software to convert it (Perl comes to mind). If you are using Linux, it may be sufficient to switch to a non-UTF8 locale.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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:
Clint Davis wrote:> The following code returns a simple "1". None of the HTML after the [grep]> code is rendered. The ascii value of the character is: x00> > [grep search=x00&replace=]107[/grep]> > I would be happy to post a sample file if it would help.WebCatalog only understands ASCII text files, which specifically prohibits embedded NUL characters. The best thing to do is to ask the client to fix their export so that they export text only. To quote your original message:> Unfortunately, the DB contains null characters between every> normal character.That means they are saving the file as UTF8 instead of ASCII text. If the client is unable to provide non-UTF8 files, you will have to use some other software to convert it (Perl comes to mind). If you are using Linux, it may be sufficient to switch to a non-UTF8 locale.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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/
John Peacock
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:
Emailer error codes (1999)
Use of Back and Reload Buttons on ShoppingCart page? (1997)
how to add to triggers.db (1998)
Re:Running 2 two WebCatalog.acgi's (1996)
WebDNAmonitor running but webcat won't start. (2002)
Return records from another (1997)
Webcatalog server support (1997)
Deleting with contexts (2001)
Possible to reset Linux file permissions w/in webcat [shell] ? (2000)
Running _every_ page through WebCat ? (1997)
Major bug report on rootbeer (1997)
Can a database get stomped by simultaneous access? (1997)
Signal Raised Error (1997)
[WebDNA] Parsing XML...again... (2010)
problems with 2 tags (1997)
Duplicate Cart Numbers (1999)
Where's Cart Created ? (1997)
Trapping already submitted carts (2000)
hiding return characters (2000)
Alternating colors (1997)