foreign language support - WeOnlyDo Discussion board

foreign language support (wodFtpDLX / wodFtpDLX.NET)

by Jasmine, Friday, May 15, 2015, 08:53 (1718 days ago) @ tallycom

Hi Yoon.

I believe this line:

vLocalFile.bstrVal = str1.AllocSysString();

uses CP_ANSI conversion from (char *) to (BSTR). I suggest you switch to using UTF8 conversion. So, instead of using CString's integrated AllocSysString, you can convert string to BSTR by yourself using

int nLen = WideCharToMultiByte(CP_UTF8, 0, unicodestr, -1, ansistr, a, NULL...)

and then pass that BSTR to vLocalFile.bstrVal.

Can you try that?


Complete thread: