utf 8 - Use _wfopen in C code without writing BOM -
is possible not write out bom @ beginning of file? want later run file in dos , doesn't that.
e.g.script.bat
> '' not recognized internal or external command, operable program or batch file. >chcp 65001 active code page: 65001 >mkdir c:\move
open code:-
file *out; if((out = _wfopen(l"script.bat", l"wt+,ccs=utf-8"))==null)
rewind(out); @ start did trick.
Comments
Post a Comment