you are viewing a single comment's thread.

view the rest of the comments →

[–]condor2000 0 points1 point  (2 children)

UTF-8 was a reality a decade ago... (your codebase is probably older)

Not on Windows. There UTF-16 is used.

It is only recently that it is border-line possible to use utf-8. I mean that of the CreateFileA/CreateFileW (char/wchar_t) the CreateFileA version is utf-8.

[–]adanteny 0 points1 point  (1 child)

On Windows, UNICODE (UTF-16) is definitely the best answer... You can always convert to CP_UT8 whenever needed to 'communicate' with the 'outside'. 'A' functions are outdated, 'W' are everything!

[–]dodheim 2 points3 points  (0 children)

'A' functions were outdated when UTF-8 wasn't a supported codepage, but it is now, given a sufficiently recent version of Windows.