12-25-2017, 08:04 PM
But this code will stop working if one day you'll check "Unicode" in Options.
replace
filename.ConvertEncoding(CP_ACP CP_UTF8)
with
if(!_unicode) filename.ConvertEncoding(CP_ACP CP_UTF8)
or
filename.ConvertEncoding(_unicode CP_UTF8)
replace
filename.ConvertEncoding(CP_ACP CP_UTF8)
with
if(!_unicode) filename.ConvertEncoding(CP_ACP CP_UTF8)
or
filename.ConvertEncoding(_unicode CP_UTF8)