Page 1 of 1

Converting double byte

Posted: Mon Aug 08, 2005 7:27 pm
by SBro
A friend just sent me an email containing the following
I have a file with null characters -X00 every second byte, so I think it is in double byte format. So my question is how do I strip out those bytes?
Can this be achieved using php ? ie. by reading in the characters and doing something to them ? thanks.

Posted: Tue Aug 09, 2005 8:45 am
by feyd
his file is in UTF16.

mb_convert_encoding() should be able to do a translation... or
iconv() may do the translation..