lisawebs Posted May 2, 2008 Share Posted May 2, 2008 After reading an existing txt file in UNICODE format, (no problem with that) I need to rewrite the txt file again UNICODE (not UTF-8, to flash isn't the same thing) I dont need to use the UNICODE stuff internally, I just need to set something to the written file keeps the originally UNICODE format. I new previous version cannot support that what about PHP 5? Thanks a lot Lisa Link to comment https://forums.phpfreaks.com/topic/103806-saving-a-txt-file-in-unicode-format/ Share on other sites More sharing options...
effigy Posted May 2, 2008 Share Posted May 2, 2008 What is the "Unicode format"? Link to comment https://forums.phpfreaks.com/topic/103806-saving-a-txt-file-in-unicode-format/#findComment-531724 Share on other sites More sharing options...
discomatt Posted May 2, 2008 Share Posted May 2, 2008 UTF-8 IS probably what you want... maybe flash has a problem with/without BOMs Link to comment https://forums.phpfreaks.com/topic/103806-saving-a-txt-file-in-unicode-format/#findComment-531771 Share on other sites More sharing options...
darkfreaks Posted May 2, 2008 Share Posted May 2, 2008 if you guys bothered to read she needs Unicode NOT UTF-8 to flash try the PHP unicode functions: http://us2.php.net/unicode Link to comment https://forums.phpfreaks.com/topic/103806-saving-a-txt-file-in-unicode-format/#findComment-531874 Share on other sites More sharing options...
Crew-Portal Posted May 2, 2008 Share Posted May 2, 2008 microsoft .txt's gerally only save in uTF-8. Perhaps you would need the script to save data in a .rtf file. or if you know how to you could have the script save data in a database that uses unicode instead of UTF-8.! Link to comment https://forums.phpfreaks.com/topic/103806-saving-a-txt-file-in-unicode-format/#findComment-531903 Share on other sites More sharing options...
effigy Posted May 2, 2008 Share Posted May 2, 2008 if you guys bothered to read she needs Unicode NOT UTF-8 to flash I did "bother" to read. Unicode is not an encoding. If you read the documentation for the unicode_decode and unicode_encode functions, you will see that they require an encoding. Link to comment https://forums.phpfreaks.com/topic/103806-saving-a-txt-file-in-unicode-format/#findComment-531908 Share on other sites More sharing options...
Crew-Portal Posted May 2, 2008 Share Posted May 2, 2008 if you guys bothered to read she needs Unicode NOT UTF-8 to flash darkfreaks wow... Sorry to have mispleased the gods! Link to comment https://forums.phpfreaks.com/topic/103806-saving-a-txt-file-in-unicode-format/#findComment-531925 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.