mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
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:
parent
7339af3a21
commit
b85bccbbe6
10 changed files with 121 additions and 13 deletions
17
openpgpsdk/src/util/opsstring.h
Normal file
17
openpgpsdk/src/util/opsstring.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue