07.01.2015, 15:13
Character encoding. The function writes to the file in UTF-8, which does not support these special characters. Try packing the string (strpack).
Quote:
|
This function writes a zero-terminated buffer, presumably a text string, to the file. If the text string is in unpacked format, it is written to the file in UTF-8 encoding. A packed string is written to the file “as is”. |

