Save file with ANSI encoding

Discussion in 'PHP' started by samyak, Jun 5, 2011.

  1. #1
    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
     
    samyak, Jun 5, 2011 IP