Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Handle UTF-8 correctly #8

Merged
merged 1 commit into from May 11, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
@@ -8,5 +8,5 @@ function idx(array $array, $key, $default = null) {
}
function he($str) {
- return htmlentities($str, ENT_QUOTES);
+ return htmlentities($str, ENT_QUOTES, "UTF-8");
}