mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64552 954022d7-b5bf-4e40-9824-e11837661b57
15 lines
415 B
C++
15 lines
415 B
C++
#include "../UnicodeConverter.h"
|
||
#include "../../DesktopEditor/common/File.h"
|
||
|
||
int main(int argc, char *argv[])
|
||
{
|
||
NSUnicodeConverter::CUnicodeConverter oConverter;
|
||
|
||
std::string str1 = oConverter.fromUnicode(L"рус", "windows-1251");
|
||
|
||
std::wstring str2 = oConverter.toUnicode(str1, "windows-1251");
|
||
std::string str3 = oConverter.fromUnicode(str2, "windows-1251");
|
||
|
||
return 0;
|
||
}
|