Preserving UTF-8 Encoding when Copying Files between Directories
Posted on 2009-04-24
Hi, I am logged into my webserver as root via SSH
I copied all my html files from one directory to another
\cp -pRf /development/* /production
once finished, utf-8 character encoding got messed up.
when i view them on my production website, the special chars show as "?". Oddly though it still displays fine in IE. Just not Mozilla.
both domains are on the same webserver
as a test, i downloaded one of the files via FTP, opened it, saved it as UTF-8 and re-uploaded it. it displays fine.
So, it looks like somehow during the copy procedure i lose the UTF-8 encoding.