Try:
ns_return 200 text/html [encoding system]-[string repeat X 10000]
With:
ns_param hackcontenttype true
ns_param outputcharset utf-8
ns_param urlcharset utf-8
ns_param preferredcharsets { utf-8 iso8859-1 }
and then try the same thing by commenting out the outputcharset line.
Without outputcharset, it works. With outputcharset, it doesn't (data >
8192).
I've placed a logging statement just before Ns_ConnSetRequiredHeaders in
ReturnCharData (return.c):
* Without outputcharset - ReturnCharData: len=10007 sendRaw=1 hlen=10007
* With outputcharset - ReturnCharData: len=10007 sendRaw=0 hlen=10007
> e.g., for a current project, we use the server the way Zoran said once
> on the list: use it out of the box and rely on the Unicode encoding.
> The strange thing is, that, when on the other hand explicitely
> verbosely setting the outputcharset (et.al) parameter to utf-8, it
> breaks.
True. The only reason I mention this here is because it works for
aolserver. I suppose there is a good reason that things are done
differently.
Best wishes,
Neophytos
Vlad Seryakov wrote:
> Can you provide more info how to reproduce it, i used test page with n >
> 8192 and it works fine
>
> Neophytos Demetriou wrote:
>> Dear Vlad,
>> Dear Zoran,
>>
>> I came across some strange behavious when sendRaw is 0 (usually when you
>> specify an encoding in the configuration file, i.e. hackcontenttype
>> true, etc) I get a blank page instead of the actual data.
>>
>> I've experimented with [string repeat X $n] and I realized that this
>> happens whenever the size of the returned data exceeds IOBUFSZ (i.e.
>> $n > 8192).
>>
>> Maybe I'm missing something obvious here (*) but I assume there's some
>> kind of bug in Ns_ConnWriteVChars.
>>
>> Best wishes,
>> Neophytos
>>
>>
>> PPS. It's already 6 o' clock in the morning. I need to get some sleep
>> and I'll try to check it out again later in the afternoon.
>>
>> PS. I'm using a cvs checkout from 2007-05-19.
>>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
naviserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/naviserver-devel