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