I need to save files with ANSI encoding. Is it possible in PHP? The text that these files will contain are however UTF-8 characters. There should be a way to do it since, I was able to open a UTF-8 file with notepad and then save it as ANSI encoded file. The UTF-8 characters were not lost. Thanks, Amit