From: Vlad S. <vl...@cr...> - 2005-06-10 17:12:42
|
All that encoding also depends on how your server configured, does it use non-standard encoding or everything in UTF. Eastern websites usually support many languages and there all encoding/translation goes, so being able to explicitly handle binary data is important. Zoran Vasiljevic wrote: > > Am 10.06.2005 um 18:55 schrieb Stephen Deasey: > >> >> You've just passed arbitrary bytes to an API which expects UTF8. >> Expect your server to crash... >> >> > > Hm.... > > set chan [open /the/file.img] > fconfigure $chan -translation binary > set datain [read $chan] > close $file > nsv_set Images file.img $datain > # > set dataout [nsv_set Images file.img] > set chan [open /the/fileout.img w] > fconfigure $chan -translation binary > puts -nonewline $chan $dataout > close $file > > Crash ? > > Zoran > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput > a projector? How fast can you ride your desk chair down the office luge > track? > If you want to score the big prize, get to know the little guy. Play to > win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |