From a7c58709576fd882e00c857b87bea4d0f61a2ab2 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Fri, 25 Mar 2016 00:48:49 +0100 Subject: [PATCH] FIX convert from system non Unicode to Unicode --- source/charset.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/charset.cpp b/source/charset.cpp index d5e1edda..573e1e91 100644 --- a/source/charset.cpp +++ b/source/charset.cpp @@ -1156,10 +1156,10 @@ namespace nana switch(encoding) { case unicode::utf8: - return utf32_to_utf8(wcstr); - case unicode::utf16: - return utf32_to_utf16(wcstr); + return utf16_to_utf8(wcstr); case unicode::utf32: + return utf16_to_utf32(wcstr); + case unicode::utf16: return wcstr; } }