fopen、_wfopen | Microsoft Learn
C言語のワイド文字入出力 — MSVCRTの場合 | 雑記帳
fopen.cで、
と書く。

こうなり、

UTF-8出力できた。
(UTF-8でもfprintfだとassert出たので、fwprintfにした。)
Sample/c/fopen/ccs_UTF-8_Windows/src/fopen at master · bg1bgst333/Sample · GitHub
fopen、_wfopen | Microsoft Learn
C言語のワイド文字入出力 — MSVCRTの場合 | 雑記帳
fopen.cで、
と書く。
こうなり、
UTF-8出力できた。
(UTF-8でもfprintfだとassert出たので、fwprintfにした。)
Sample/c/fopen/ccs_UTF-8_Windows/src/fopen at master · bg1bgst333/Sample · GitHub