Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: LayoutTests/http/tests/xmlhttprequest/resources/get-utf-8.cgi

Issue 20625004: XMLHttpRequest should clear the response encoding when it clears responseText. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/xmlhttprequest/resources/get-utf-8.cgi
diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/get-utf-8.cgi b/LayoutTests/http/tests/xmlhttprequest/resources/get-utf-8.cgi
new file mode 100755
index 0000000000000000000000000000000000000000..6cf95973318ebfd9606744a58cdbe0d1c5bc2a0a
--- /dev/null
+++ b/LayoutTests/http/tests/xmlhttprequest/resources/get-utf-8.cgi
@@ -0,0 +1,6 @@
+#!/usr/bin/perl -w
+use utf8;
+use Encode 'encode';
+
+print "Content-type: text/plain; charset=utf-8\n\n";
+print encode("UTF-8", "Проверка");

Powered by Google App Engine
This is Rietveld 408576698