fluidsharp Posted May 19, 2010 Share Posted May 19, 2010 Hello guys! I don't understand why when I get Cyrillic character from string - happens smth. wrong. For example : $str = "МУГдй"; if I echo it all is good. But when I do it: $str1 = $str[2]; it will output Roman character or " in phpED and in firefox fffd. Thanks you in advance. Link to comment https://forums.phpfreaks.com/topic/202230-getting-character-of-a-string/ Share on other sites More sharing options...
fluidsharp Posted May 19, 2010 Author Share Posted May 19, 2010 and substr(); gives same result Link to comment https://forums.phpfreaks.com/topic/202230-getting-character-of-a-string/#findComment-1060397 Share on other sites More sharing options...
fluidsharp Posted May 19, 2010 Author Share Posted May 19, 2010 I've founded solution. I should use multibyte string functions. Link to comment https://forums.phpfreaks.com/topic/202230-getting-character-of-a-string/#findComment-1060418 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.