Files
core/UnicodeConverter/test/main.cpp
Oleg.Korshul 7beee739ad unicode converter
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64552 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:30:51 +03:00

15 lines
415 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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;
}