NiftyHost Forums (Archive)
how to transfer ANSI to UTF-8 ? - Printable Version

+- NiftyHost Forums (Archive) (https://niftyhost.chary.us/support)
+-- Forum: Technology (https://niftyhost.chary.us/support/forum-7.html)
+--- Forum: Software (https://niftyhost.chary.us/support/forum-14.html)
+--- Thread: how to transfer ANSI to UTF-8 ? (/thread-375.html)



how to transfer ANSI to UTF-8 ? - 903 - 07-07-2010

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.


RE: how to transfer ANSI to UTF-8 ? - citrorm - 07-09-2010

you can user ultraedit this software to change the text format!


RE: how to transfer ANSI to UTF-8 ? - RichardGv - 07-09-2010

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/1537.htm?highlight=msg907952#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.)


RE: how to transfer ANSI to UTF-8 ? - khy - 07-13-2010

open the file via notepad
and then save the file in utf-8 mode


RE: how to transfer ANSI to UTF-8 ? - nguagovt - 10-21-2010

I am convert = notepad + +. Hix converter UFT-8 each file a very ...:(


RE: how to transfer ANSI to UTF-8 ? - Vanilla - 10-21-2010

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/free-ansi-to-utf8-multiple-files-converter

Or, you can make use of UTFcast: http://www.addictivetips.com/windows-tips/how-to-batch-convert-text-files-to-utf-8-encoding/

Hope it helps ;)