Page 1 of 1

Encoding problem - SDK ?

Posted: Wed Apr 24, 2013 9:44 am
by dinhluanbmt
Dear all,
I could run C# sample code from Everything SDK. but I got some errors
- only English character give me the correct result. ( the path or file name in Korean can not display)
- when I type Korean Character to the search box, the result is zero.

Everything (installed program) could run well and give correct result when i use Korean character.

Could anyone tell me how to use : Everything_SetSearch(), Everything_GetResultFullPathName()...function with Korean character ?.
Normally, when I work with Korean character, I use wchar_t (c++) string (c#) and get correct result.

Thank you very much,
Best regards,
Luan Dinh

Re: Encoding problem - SDK ?

Posted: Wed Apr 24, 2013 11:25 am
by void
Please make sure you compile your application with the Unicode character set.

Check if UNICODE is defined.
Otherwise use the functions ending with W

Code: Select all

If you are displaying results to a console you might need to set the console to UTF-16

Code: Select all

If necessary use wcout instead of cout.

For example:

Code: Select all

if (Everything_GetNumResults())
    wcout << Everything_GetResultFullPathNameW(0);

problem solved - Thank you

Posted: Thu Apr 25, 2013 12:44 am
by dinhluanbmt
problem solved !
Thank you very much for your help.
Best regards,
Luan Dinh.