From 7e6e00f06a4afaf4773897377c634b517f331e22 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Sun, 16 Nov 2008 21:40:10 +0000 Subject: [PATCH] + return UTF-8 in to_string --- include/mapnik/value.hpp | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index 3cdad1b92..99d345d01 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -462,26 +462,9 @@ namespace mapnik { // specializations std::string operator() (UnicodeString const& val) const { - //std::stringstream ss; - //std::wstring::const_iterator pos = val.begin(); - //ss << std::hex ; - //for (;pos!=val.end();++pos) - //{ - // wchar_t c = *pos; - // if (c < 0x80) - // { - // ss << char(c); - // } - // else - // { - // ss << "\\x"; - // unsigned c0 = (c >> 8) & 0xff; - // if (c0) ss << c0; - // ss << (c & 0xff); - // } - //} - //return ss.str(); - return "TODO"; + std::string utf8; + to_utf8(val,utf8); + return utf8; } std::string operator() (double val) const