Alexander Kuzmenko 7 rokov pred
rodič
commit
294e90486b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      std/php/Boot.hx

+ 1 - 1
std/php/Boot.hx

@@ -668,7 +668,7 @@ private class HxString {
 	}
 
 	public static function charAt( str:String, index:Int) : String {
-		return index < 0 ? '' : Global.mb_substr(str, index, 1);
+		return index < 0 ? '' : Global.mb_substr(str, index, 1, 'UTF-8');
 	}
 
 	public static function charCodeAt( str:String, index:Int) : Null<Int> {