Код: Выделить всё
preg_match('/H/u', "\xC2\xA1Hola!", $a_matches, PREG_OFFSET_CAPTURE);
echo $a_matches[0][1];
У меня есть следующие настройки в моем php.ini и другие функции UTF8 работают:
Код: Выделить всё
mbstring.func_overload = 7
mbstring.language = Neutral
mbstring.internal_encoding = UTF-8
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = Off
Подробнее здесь: https://stackoverflow.com/questions/172 ... set-captur
Мобильная версия