NiftyHost Forums (Archive)

Full Version: how to transfer ANSI to UTF-8 ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just know how to transfer a file with Notepad++.
But if there are a lot of files in a folder and subfolder,how to transfer them?Includes .html .php .js and so on filetypes.
you can user ultraedit this software to change the text format!
Honestly, I don't know how to do this in a batch mode in Windows, I only know how to do this in Linux:
Code:
find . -name "*.php" -exec iconv -f cp1252 -t UTF-8 {} -o {}.new \;
(The command came from here: http://www.webmasterworld.com/forum40/15...#msg907952 )
You can convert them one by one in Windows with iconv, using some command like this:
Code:
iconv -f cp1252 -t UTF-8 -o target.php source.php
(You can get iconv for Windows from GnuWin32 project. Of course, cygwin can be better.)
open the file via notepad
and then save the file in utf-8 mode
I am convert = notepad + +. Hix converter UFT-8 each file a very ...:(
Well, if you are a windows user, you can either use the windows powershell (WindowsButton + R = CMD || Type in "powershell"), and use the following code [LINK]: http://superuser.com/questions/113394/fr...-converter

Or, you can make use of UTFcast: http://www.addictivetips.com/windows-tip...-encoding/

Hope it helps ;)