Answer the question
In order to leave comments, you need to log in
PHP. Writing to a UCS-2 encoded file?
Good day, dear habrausers. There is a need to create a text file and write several lines into it. The file encoding must be UCS-2. Tried a lot of things, nothing worked. Help me please.
Answer the question
In order to leave comments, you need to log in
Posted in the wrong place...
Try the iconv() function : www.php.net/manual/en/function.iconv.php . With hemorrhoids with encodings helps.
There is no concept of "file encoding", what data you write there in that encoding they will be.
Describe the task in more detail.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question