how to transfer ANSI to UTF-8 ?
07-07-2010, 03:07 PM,
#1
how to transfer ANSI to UTF-8 ?
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.
Reply
07-09-2010, 06:12 PM,
#2
RE: how to transfer ANSI to UTF-8 ?
you can user ultraedit this software to change the text format!
飞蚊症信息网
Reply
07-09-2010, 08:56 PM,
#3
RE: how to transfer ANSI to UTF-8 ?
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.)
Gentoo Linux User (w/ fvwm) / Loyal Firefox User / Owner of a Stupid Old Computer - My PGP Public Key

No man is an island, entire of itself; every man is a piece of the continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friends or of thine own were; any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee.
-- Devotions Upon Emergent Occasions (1624), John Donn
Reply
07-13-2010, 12:44 AM,
#4
RE: how to transfer ANSI to UTF-8 ?
open the file via notepad
and then save the file in utf-8 mode
Reply
10-21-2010, 08:45 PM,
#5
RE: how to transfer ANSI to UTF-8 ?
I am convert = notepad + +. Hix converter UFT-8 each file a very ...:(
Reply
10-21-2010, 09:31 PM, (This post was last modified: 10-21-2010, 09:31 PM by Vanilla.)
#6
RE: how to transfer ANSI to UTF-8 ?
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 ;)
Reply


Forum Jump: