From: gggeek Date: Sun, 19 Apr 2015 21:59:55 +0000 (+0100) Subject: Make debugger use utf8 by default X-Git-Tag: 4.0.0-alpha^2~70 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=f68bfa1c150747d2118e4b2c4f193b00a56dedb1 Make debugger use utf8 by default --- diff --git a/NEWS b/NEWS index 7f2c261..5062473 100644 --- a/NEWS +++ b/NEWS @@ -41,9 +41,6 @@ PLEASE READ CAREFULLY THE NOTES BELOW to insure a smooth upgrade. * improved: the testsuite has basic checks for the debugger and demo files -* fixed: the debugger would fail sending a request with ISO-8859-1 payload (it missed the character set declaration). - It would have a hard time coping with ISO-8859-1 in other fields, such as e.g. the remote method name - * fixed: the server would fail to decode a request with ISO-8859-1 payload and character set declaration in the xml prolog only * fixed: the client would fail to decode a response with ISO-8859-1 payload and character set declaration in the xml prolog only @@ -52,6 +49,11 @@ PLEASE READ CAREFULLY THE NOTES BELOW to insure a smooth upgrade. * fixed: the client can now successfully call methods using ISO-8859-1 or UTF-8 characters in their name +* fixed: the debugger would fail sending a request with ISO-8859-1 payload (it missed the character set declaration). + It would have a hard time coping with ISO-8859-1 in other fields, such as e.g. the remote method name + +* improved: the debugger is displayed using UTF-8, making it more useful to debug any kind of service + * improved: echo all debug messages even when there are characters in them which php deems to be in a wrong encoding (this is visible e.g. in the debugger) diff --git a/debugger/action.php b/debugger/action.php index c818429..3e22c69 100644 --- a/debugger/action.php +++ b/debugger/action.php @@ -8,6 +8,9 @@ * @todo use ob_start to catch debug info and echo it AFTER method call results? * @todo be smarter in creating client stub for proxy/auth cases: only set appropriate property of client obj **/ + +header('Content-Type: text/html; charset=utf-8'); + ?> @@ -529,6 +532,7 @@ if ($action) {

Changelog