From: Zoran V. <zv...@ar...> - 2020-09-04 09:02:57
|
On Thu, 3 Sep 2020 14:52:44 +0300 oleg <oo...@ua...> wrote: Hi! Thanks for looking into this. > The ns_http command does not convert the received data, so we must use > the 'encoding convertfrom' command. I see you added the Ns_GetTypeEncoding(cType) test for non-binary content and then use Tcl_ExternalToUtfDString() to convert. This seems OK for me. What is the purpose of signalling the binary content way up from the command line? For this we have the Ns_IsBinaryMimeType(cType) test. > Sometimes converted strings become > corrupted. For example, there is a server with output encoding > iso-8859-2 This is I guess out of the scope as we rely on Tcl to do encoding conversions. So if this comes bad, then you must post a bug to the Tcl project. Cheers Zoran |