瀏覽代碼

- patched Utf8.uchr

Franco Ponticelli 15 年之前
父節點
當前提交
e77c3c812e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {