Browse Source

- patched Utf8.uchr

Franco Ponticelli 15 years ago
parent
commit
e77c3c812e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/php/Utf8.hx

+ 1 - 1
std/php/Utf8.hx

@@ -59,7 +59,7 @@ class Utf8 {
 	}
 
 	public static function uchr(i : Int) : String {
-		return untyped __php__("mb_convert_encoding(pack('N',$i), mb_internal_encoding(), 'UCS-4BE')");
+		return untyped __php__("mb_convert_encoding(pack('N',$i), 'UTF-8', 'UCS-4BE')");
 	}
 
 	public static function uord(s : String) : Int untyped {