From 4269ecde13580077c4d234b21784f704bf43e8fc Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 31 Aug 2005 18:20:45 +0000 Subject: - fix character conversion for DVB --- lib/base/estring.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/base/estring.cpp') diff --git a/lib/base/estring.cpp b/lib/base/estring.cpp index f0107b6a..aee17429 100644 --- a/lib/base/estring.cpp +++ b/lib/base/estring.cpp @@ -3,6 +3,7 @@ #include #include #include +#include static pthread_mutex_t lock=PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP; @@ -181,7 +182,12 @@ static inline unsigned int recode(unsigned char d, int cp) } } -std::string convertDVBUTF8(unsigned char *data, int len, int table) +std::string convertDVBUTF8(const std::string &s, int table) +{ + return convertDVBUTF8((const unsigned char*)s.c_str(), s.size(), table); +} + +std::string convertDVBUTF8(const unsigned char *data, int len, int table) { int i; if (!len) -- cgit v1.2.3