How to find character at byte offset in PHP?
<p>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 <code>Notice:  unserialize() [function.unserialize]: Error at offset 1481 of 255200 bytes [...]</code>
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?</p>

<p>Thanks in advance.</p>
