S
S
splitface2011-12-28 05:40:21
PHP
splitface, 2011-12-28 05:40:21

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

2 answer(s)
P
powder96, 2011-12-28
@powder96

Posted in the wrong place...
Try the iconv() function : www.php.net/manual/en/function.iconv.php . With hemorrhoids with encodings helps.

A
Andrey Burov, 2011-12-28
@BuriK666

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 question

Ask a Question

731 491 924 answers to any question