I received an xml document in "windows-1250" encoding into $HTTP_RAW_POST_DATA. I wrote it into a file. Until now OK. But characters like á, í, é, ô became to some 2-byte chunks of data (seems like unicode). How can I write them correctly?