You must do substr($str, 1481, 2); , substr($str, 1481, 3); or substr($str, 1481, 4); . If it is UTF-8, you will find it in any of the three substrings, because UTF-8 char can take from 2 to 4 characters depending on the first char.
I had a lot of problems with this, so if you canβt find what is happening with the encoding, please reply again :-) I will try to give you a hand.
Good luck
Edit: do not forget to make a title ("Content-type: text / html; charset = utf8"); to view the result correctly.
source share