Re:Rapidstring: Maybe the fastest string library ever
by flohofwoe on Wednesday August 01, 2018 @06:45AM
(#17661304)
Most Win32 API functions don't even take string parameters, so there's no separate ASCII or UCS-2 version of those.
Of the functions that take strings, the old ...A() versions should never be called anyway since they depend on the obsolete concept of code pages. The proper way to work with strings on Windows (IMHO) is to encode all string data to UTF-8, only encode/decode from/to UCS-2 when needed, and call the ...W() functions explicitely (don't use the global UNICODE define).
Of the functions that take strings, the old ...A() versions should never be called anyway since they depend on the obsolete concept of code pages. The proper way to work with strings on Windows (IMHO) is to encode all string data to UTF-8, only encode/decode from/to UCS-2 when needed, and call the ...W() functions explicitely (don't use the global UNICODE define).
Also see: http://utf8everywhere.org/