1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Specify encoding for PHP 5.6 with invalid default_charset (fixes #421)

This commit is contained in:
Jakub Vrana
2014-09-11 08:48:17 -07:00
parent 8d432beb3d
commit 0e78996fdb
2 changed files with 3 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ function charset($connection) {
* @return string
*/
function h($string) {
return str_replace("\0", "�", htmlspecialchars($string, ENT_QUOTES));
return str_replace("\0", "�", htmlspecialchars($string, ENT_QUOTES, 'utf-8'));
}
/** Escape for TD