Page 1 of 1

how to get the bytes of a UTF8 string

Posted: Mon Dec 27, 2004 3:28 am
by jasongr
Hello

I have a UTF8 encoded string.
Is it possible to get access to the string bytes?
If so, how
I need to perform some manipulations on them

regards

Posted: Mon Dec 27, 2004 6:44 am
by panoramical
Would filesize() work?

Posted: Mon Dec 27, 2004 7:10 am
by Weirdan
$string{0} - first byte,
$string{4} - fifth byte and so on...

Posted: Tue Dec 28, 2004 4:05 am
by jasongr
thanks for the help