PHP ofset bayt karakteri bulmak için nasıl?

0 Cevap

I'm trying to troubleshoot an issue with some (apparently) mangled serialized data in a MySQL database, after a conversion to UTF8. When I try to unserialize them, I get the usual Notice: unserialize() [function.unserialize]: Error at offset 1481 of 255200 bytes [...] However, given that this is a multi-byte string, I can't figure out how to find which character is at that byte offset. What I need is something like substr() but for bytes, instead of characters. How can I do that?

Şimdiden teşekkürler.

0 Cevap