summaryrefslogtreecommitdiffstats
path: root/tests/httpd
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2016-10-08 16:41:51 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2016-10-08 16:41:51 (GMT)
commit42bb1615c096d6485d36f6a07eab36f2e2e95b3b (patch)
treed5b3a9663302e1a59ba7aad9e0aa489de6650bf6 /tests/httpd
parentbe3376f36c02b2b317b509aed67b7751e656ecbb (diff)
parent0ac8f1e19818ac7aa6fd35de8e3190bcd24dcb6d (diff)
downloadtcl-42bb1615c096d6485d36f6a07eab36f2e2e95b3b.zip
tcl-42bb1615c096d6485d36f6a07eab36f2e2e95b3b.tar.gz
tcl-42bb1615c096d6485d36f6a07eab36f2e2e95b3b.tar.bz2
[838e99a76d] Ensure that encodings are handled with application/xml and friends.
Diffstat (limited to 'tests/httpd')
-rw-r--r--tests/httpd4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/httpd b/tests/httpd
index c934fac..40e10df 100644
--- a/tests/httpd
+++ b/tests/httpd
@@ -171,6 +171,10 @@ proc httpdRespond { sock } {
set html "$bindata[info hostname]:$port$data(url)"
set type application/octet-stream
}
+ *xml* {
+ set html [encoding convertto utf-8 "<test>\u1234</test>"]
+ set type "application/xml;charset=UTF-8"
+ }
*post* {
set html "Got [string length $data(query)] bytes"
set type text/plain