how to transfer ANSI to UTF-8 ?
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


Messages In This Thread
how to transfer ANSI to UTF-8 ? - by 903 - 07-07-2010, 03:07 PM
RE: how to transfer ANSI to UTF-8 ? - by citrorm - 07-09-2010, 06:12 PM
RE: how to transfer ANSI to UTF-8 ? - by RichardGv - 07-09-2010, 08:56 PM
RE: how to transfer ANSI to UTF-8 ? - by khy - 07-13-2010, 12:44 AM
RE: how to transfer ANSI to UTF-8 ? - by nguagovt - 10-21-2010, 08:45 PM
RE: how to transfer ANSI to UTF-8 ? - by Vanilla - 10-21-2010, 09:31 PM

Forum Jump: