質問

how can i add Byte order mark (BOM) to output file using C?

my output file is ANSI as UTF-8 (which mean UTF-8 without BOM)

but i need it to be UTF-8 with BOM

how can i do that?

役に立ちましたか?

解決

the answer is

printf("\xef\xbb\xbf");
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top