16 lines
299 B
C++
16 lines
299 B
C++
#include "LogArg.h"
|
|
#ifndef _WIN32
|
|
#include "utextcodec/UTextCodec.h"
|
|
#else
|
|
#include "../UTextCodec/UTextCodec.h"
|
|
#endif
|
|
|
|
namespace uns
|
|
{
|
|
// 宽字符转 UTF-8 实现
|
|
std::string ConvertWStringToUtf8(std::wstring_view wstr)
|
|
{
|
|
return UTextCodec::WtoS(std::wstring(wstr));
|
|
}
|
|
}
|