Convert any UTF-7 to UTF-8 so that fragment pages (like AJAX replies)

won't be mistakenly interpreted as UTF-7.  Fixes #1869.
This commit is contained in:
Bharat Mediratta
2012-05-16 11:32:28 -07:00
parent 91e87cb811
commit 1c5c2e7de4

View File

@@ -31,7 +31,7 @@ class SafeString_Core {
$this->_is_safe_html = $string->_is_safe_html;
$string = $string->unescaped();
}
$this->_raw_string = (string) $string;
$this->_raw_string = mb_convert_encoding((string) $string, 'UTF-8', 'UTF-7');
}
/**