Added function "ops_open" to openpgpsdk to open files with utf8 characters on Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5934 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-12-03 15:58:44 +00:00
parent 7339af3a21
commit b85bccbbe6
10 changed files with 121 additions and 13 deletions

View file

@ -0,0 +1,17 @@
#ifndef OPSSTRING_H
#define OPSSTRING_H
#ifdef WIN32
#include <wtypes.h>
#endif
#ifdef WIN32
// currently only for WIN32
// Convert strings between UTF8 and UTF16
// Don't forget to free the returned string.
wchar_t* ConvertUtf8ToUtf16(const char *source);
char* ConvertUtf16ToUtf8(const wchar_t* source);
#endif
#endif // OPSSTRING_H