Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switched to use mbstring whenever possible instead of iconv

  • Loading branch information...
commit 2b7a2e067f250bf5fbdcab5d2c8679a085f1693c 1 parent d7dd482
@fabpot fabpot authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Unescaper.php
View
6 Unescaper.php
@@ -134,10 +134,10 @@ public function unescapeCharacter($value)
*/
private function convertEncoding($value, $to, $from)
{
- if (function_exists('iconv')) {
- return iconv($from, $to, $value);
- } elseif (function_exists('mb_convert_encoding')) {
+ if (function_exists('mb_convert_encoding')) {
return mb_convert_encoding($value, $to, $from);
+ } elseif (function_exists('iconv')) {
+ return iconv($from, $to, $value);
}
throw new \RuntimeException('No suitable convert encoding function (install the iconv or mbstring extension).');
Please sign in to comment.
Something went wrong with that request. Please try again.