Skip to content

Apache Lucene open-source search software

tests: include UTF8 output test

Yonik Seeley0a2c31b75d74
diff --git a/solr/example/exampledocs/test_utf8.sh b/solr/example/exampledocs/test_utf8.sh
index bf625e53fd6..0190ff27970 100755
--- a/solr/example/exampledocs/test_utf8.sh
+++ b/solr/example/exampledocs/test_utf8.sh
@@ -81,3 +81,11 @@ else
echo "ERROR: HTTP POST + URL params is not accepting UTF-8 beyond the basic multilingual plane"
fi
+curl "$URL/select?q=$URL_UTF8&echoParams=explicit&wt=json" 2> /dev/null | od -tx1 -w1000 | sed 's/ //g' | grep 'f4808198' > /dev/null 2>&1
+if [ $? = 0 ]; then
+ echo "Response can return UTF-8 beyond the basic multilingual plane"
+else
+ echo "ERROR: Response can't return UTF-8 beyond the basic multilingual plane"
+fi
+
+