Hi got a problem with my php. I'm working on a html form which posts unicode (arabic) to a php script (IIS/win2K). I seem to get the data correctly (encoded as ف for example), so my idea was just to strip of the '&#' and the ';', convert it to hex with dechex() (result: 0x0641) and then store it in a byte array as {0x41, 0x06, 0x00, 0x00} (little endian, plus double terminating null bytes in the end).
My question is; how do I convert this number(s) to a byte array in php? Is there a simpler way?
regards,
Fredrik