Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

210.Character encoding -- How to convert/change a utf-16(utf16) txt file to ansi txt file?

User: xuhuai5 -- 2008-07-02          << 209  211 >>
Hits: 6439
Type: Character encoding   
Search all Character encoding examples
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  
Hint: You need to Download and install "Replace Pioneer" on windows platform 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.

Similar Examples:
How to convert/change a file from gbk to utf-8(utf8)? (60%)
How to convert each line of a text file to the new format? (59%)
How to convert csv or xls file to vcf file? (57%)
How to convert the text from decimal to hex in a file? (56%)
How to convert the text from hex to decimal in a file? (56%)
How to convert a text file to specified format? (55%)
How to convert many text files from encoding utf8 to utf8-BOM? (54%)
How to convert a vcf file with multiple entries into a csv file? (53%)

Check Demo of Character encoding
utf16 to gbk  utf16 txt  gbk  chinese  language  ansi  default encoding  unicode  unicod  change encode  text encoding gbk  convert gbk to txt  txt file gbk encoding  convert gbk file to text  convert from txt to gbk  utf16 gbk  text file encoding gbk  convert txt to gbk