summaryrefslogtreecommitdiff
path: root/core/utf8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/utf8.cpp')
-rw-r--r--core/utf8.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/utf8.cpp b/core/utf8.cpp
index c5e83e1..2dac1ea 100644
--- a/core/utf8.cpp
+++ b/core/utf8.cpp
@@ -20,20 +20,18 @@
std::string toUTF8(std::wstring str)
{
std::string ustr;
- std::wstring tmpstr;
- utf8::replace_invalid(str.begin(), str.end(), back_inserter(tmpstr));
- utf8::utf16to8(tmpstr.begin(), tmpstr.end(), back_inserter(ustr));
+ utf8::utf16to8(str.begin(), str.end(), back_inserter(ustr));
return ustr;
}
-std::string toUTF8(std::string str)
+/*std::string toUTF8(std::string str)
{
std::string ustr;
std::string tmpstr;
utf8::replace_invalid(str.begin(), str.end(), back_inserter(tmpstr));
utf8::utf16to8(tmpstr.begin(), tmpstr.end(), back_inserter(ustr));
return ustr;
-}
+}*/