diff options
author | methodus <methodus@web.de> | 2012-12-31 13:45:07 +0100 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-12-31 13:45:07 +0100 |
commit | 624049b01b7eacfef9fd7e4a6e73f4ffa1cc36a6 (patch) | |
tree | 4ca51504fd616929e5ebd113966190b8bdab4813 /common | |
parent | 0deeeb8116285491ecef1e52c23f7851383f8c86 (diff) | |
download | vdr-plugin-upnp-624049b01b7eacfef9fd7e4a6e73f4ffa1cc36a6.tar.gz vdr-plugin-upnp-624049b01b7eacfef9fd7e4a6e73f4ffa1cc36a6.tar.bz2 |
Fixed string encoding issue
Diffstat (limited to 'common')
-rw-r--r-- | common/tools.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/tools.cpp b/common/tools.cpp index 797dbfe..c18d21e 100644 --- a/common/tools.cpp +++ b/common/tools.cpp @@ -106,6 +106,13 @@ string Trim(const std::string& str, const std::string& whitespace) return str.substr(strBegin, strRange); } +string ToUTF8String(const char* bytes){ + cCharSetConv conv; + char to[4096]; + conv.Convert(bytes, to, 4096); + return string(to); +} + string ToString(long number){ stringstream ss; ss << number; |