| User: xuhuai5 -- 2008-07-02 |
| Hits: 519 |
| Type: Character encoding |
| Search all Character encoding examples |
| Description: |
| how to convert a utf-16 txt file to ansii txt file? |
| Input Sample: |
| #include <stdio.h> #include <winsock2.h> #define PROC_BEGIN |
| Output Sample: |
| #include <stdio.h> #include <winsock2.h> #define PROC_BEGIN |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| The ansi encoding is your local default encoding type, usually it's gbk(cp936) for Chinese language. To convert text file from one encoding to another like UTF-16 to gbk, you just need to: 1. press Ctrl-B to open 'Batch Runner' dialog 2. click 'Pick Files' to select one or more files to convert 3. click 'Change Encode' button, set 'input encoding' to 'More Unicode->UTF-16', set 'output encoding' to 'CN->gbk' 4. click 'Start', done. |
| Check Demo of Character encoding |