Add UTF-8 BOM in source files where Chinese characters are directly embedded in
Use strtok_s instead of strtok_r for MSVC
use sprintf_s instead of sprintf for MSVC