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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -