I've got a php file on my windows machine that upon moving over to *nix with winSCP, is not showing the characters correctly.
I've dragged the file back from the linux machine down to windows and checked the encoding with Notepad++, and it says it ANSI.
So i tried iconv -f ANSI -t utf-8 filename.php>filename.php, but get an error that ANSI conversion is not supported. I've also tried MS_ANSI, and I get no error, but I also don't get the file showing the proper encoding.
I open the file with winSCP to see how it looks, and many special characters show up as '?'. Seeing as the purpose of the script is to remove these special characters from my data, it is really causing a bit of an issue.
Is there another tool for changing the encoding? I tried yum iconv, but get a no package available response.
How would you convert this file to the proper encoding?