Ofer Leshem
asked on
PHP - save unicoded text file
Hi,
I've written a PHP script which creates and save a txt file with content inside - that works well.
Out of the 4 options that Notepad allows (ANSI, Unicode, Unicode big endian and UTF-8) I've only managed to find how to create the file as ANSI and UTF-8 but I need the Unicode one or any idea how to convert it afterward.
Will appreciate a solution for that.
Thanks
I've written a PHP script which creates and save a txt file with content inside - that works well.
Out of the 4 options that Notepad allows (ANSI, Unicode, Unicode big endian and UTF-8) I've only managed to find how to create the file as ANSI and UTF-8 but I need the Unicode one or any idea how to convert it afterward.
Will appreciate a solution for that.
Thanks
Utf-8 is an unicode charset
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm going to post an objection to closing this question. Please work with us here. Did you read Joel Spolsky's article? Can you tell us WHY you need Unicode? What characters are not available in the other character sets?
Thanks, ~Ray
Thanks, ~Ray
Please give us an answer to the questions instead of declaring them "irrelevant." Thanks.
Absent any response from the Asker, I think http:#34932832 and http:#34933164 cover the subject. But I would hope to see the specific issues so we can see what characters are causing the problem.
Some additional refs:
http://php.net/manual/en/intro.strings.php#100623
http://php.net/manual/en/language.types.string.php
Some additional refs:
http://php.net/manual/en/intro.strings.php#100623
http://php.net/manual/en/language.types.string.php