winapi - Specifying the encoding when saving a file in a Windows app -


I am writing a program that mostly handles Unicode text. C standard library function 'FOPAN' describes how to write file in UTF-8 format by adding the string string "..., CCS = UTF-8". It seems that the Windows API 'Create File' provides such a provision. Do I use 'FOPAN'?

This is typical for programming under Windows, which uses Visual Studio, and Microsoft Tools My personal advice is that do not use FOPIN with extended syntax, otherwise there will be compatibility problems when porting your application to other operating systems. When using Windows, CreateFile, under Windows, in the way.

Comments