Reply New Topic
1-5-2008 4:14:19
#1
Offline
Home away from home

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

Citaat:


avtx30 wrote:
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.
Citaat:


$ 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:
.



Yes, exactly iconv can do this, this is the method we've used to change database to utf-8 ...


Subject Poster Date
     [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 ep98 1-5-2008 2:50:27
       Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 avtx30 1-5-2008 3:14:48
         Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 ep98 1-5-2008 3:20:34
           Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 1-5-2008 3:38:37
         Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 Sina Asghari 1-5-2008 4:14:19
           Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 1-5-2008 4:23:39
             Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 ep98 1-5-2008 4:41:17
               Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 davidl2 1-5-2008 4:46:01
               Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 1-5-2008 4:46:02
                 Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 1-5-2008 6:11:34
                   Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 Sina Asghari 2-5-2008 3:34:18
                     Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 2-5-2008 3:42:57
                     Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 ep98 2-5-2008 4:12:23
                       Re: [HOWTO] Convert old ISO to UTF-8 for ICMS 1.1 GibaPhp 3-5-2008 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.