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

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

android - Format a french phone number -