Skip to content

Convert source file's GBK / Unicode16 charset to UTF8(BOM), and convert the include filenames to lowercase.

Notifications You must be signed in to change notification settings

annerose/ConvertCharset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConvertCharset

Program Function

Convert source file's GBK / Unicode16 charset to UTF8(BOM), and convert the include filenames to lowercase.

Program Flow

only test on Windows, dev by VS2005

  1. Traverse the source files(.cpp|.h|.cxx|.c|.java) in the current directory

  2. Convert charset to utf-8(bom) (available for VC & GCC)

  • GBK -> Unicode16 -> UTF8
  • Unicode16 -> UTF8
  • UTF8 (no bom)-> UTF8
  1. Add command param '/a' to convert the include filenames to lowercase

Note: avoid freetype, because of the headfiles are macro

Usage

  • Copy ConvertingCharset.exe to src file dir
  • Run ConvertingCharset.exe to convert src files's charset to utf8(bom)
  • Run 'ConvertingCharset.exe /a' to convert charset and lower include file

image

2017-6-5

About

Convert source file's GBK / Unicode16 charset to UTF8(BOM), and convert the include filenames to lowercase.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages