in reply to truncate string to byte count

Actual examples please... example strings and "certain number of bytes".

Are you for example trying to carve up a utf-8 string into several blocks of say three bytes each?