https://ourcodeworld.com/articles/read/772/how-to-write-a-text-file-with-ansi-encoding-western-windows-1252-in-php
How to write a text file with ANSI encoding (Western Windows-1252) in PHP | Our Code World
Jul 4, 2018 - Learn how to write a plain text file in PHP with the Western Windows 1252 encoding.
how totext fileansi encodingour codewrite