Files
2026-06-30 17:49:51 +08:00

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