On Fri, 28 Aug 2020 12:36:20 +0200
Gustaf Neumann <neum...@wu.ac.at> wrote:

> One question though: is the trick with '--data @- << $string' really
> the recommended
> way to pass utf-8 data in windows?

There are a large number of posts on the stackowerflow/etc about using
utf-8 on the windows command line. I could not find a working option,
except that the original test works in Windows 7 and does not work in
Windows 10. The failed test looks like this:

==== http-5.3-b-default check encoding ns_conn content POST,
    content-type application/x-www-form-urlencoded,
    test via curl FAILED
==== Contents of test case:

    set string "Testing <äöüß☀>"
    exec curl -g -s --data $string [ns_config test listenurl]/post 2>
    /dev/null

---- Result was:
utf-8 <application/x-www-form-urlencoded> AÄATesting <aou??>ZÜZ
---- Result should have been (exact matching):
utf-8 <application/x-www-form-urlencoded> AÄATesting <äöüß☀>ZÜZ
==== http-5.3-b-default FAILED

The trick with '--data @- << $string' was tested successfully on all
Windows boxes I found around.

Oleg.


_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to