Reply New Topic
2008/5/1 3:14:48
#1
Offline
Just can not stay away

Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1

I hate GUI which slow my works down.

I usually use nkf to convert things to UTF-8 (without BOM) as following:

$ cd /path/to/language/directory $ nkf -w --overwrite *.php *.tpl *.html


iconv also can do the same task.
Quote:


$ iconv --help
Usage: iconv [OPTION...] [FILE...]
Convert encoding of given files from one encoding to another.

Input/Output format specification:
-f, --from-code=NAME encoding of original text
-t, --to-code=NAME encoding for output

Information:
-l, --list list all known coded character sets

Output control:
-c omit invalid characters from output
-o, --output=FILE output file
-s, --silent suppress warnings
--verbose print progress information

-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.



Subject Poster Date
     [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 ep98 2008/5/1 2:50:27
       Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 avtx30 2008/5/1 3:14:48
         Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 ep98 2008/5/1 3:20:34
           Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 2008/5/1 3:38:37
         Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 stranger 2008/5/1 4:14:19
           Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 2008/5/1 4:23:39
             Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 ep98 2008/5/1 4:41:17
               Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 davidl2 2008/5/1 4:46:01
               Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 2008/5/1 4:46:02
                 Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 2008/5/1 6:11:34
                   Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 stranger 2008/5/2 3:34:18
                     Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 2008/5/2 3:42:57
                     Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 ep98 2008/5/2 4:12:23
                       Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 2008/5/3 3:55:58
Reply New Topic extras
 Previous Topic   Next Topic
You can view topic.
You can start a new topic.
You can reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You can post without approval.