Lines 64-70
string utf8Decode(const string &from)
Link Here
|
64 |
return to; |
64 |
return to; |
65 |
} |
65 |
} |
66 |
|
66 |
|
67 |
#ifndef WIN32 |
67 |
#if !defined(WIN32) && defined(HAVE_ICONV) |
68 |
extern "C" |
68 |
extern "C" |
69 |
{ |
69 |
{ |
70 |
int iconvert(const char *fromcode, const char *tocode, |
70 |
int iconvert(const char *fromcode, const char *tocode, |
Lines 75-81
int iconvert(const char *fromcode, const
Link Here
|
75 |
|
75 |
|
76 |
string utf8ToEncoding(const string &from, const string &encoding) |
76 |
string utf8ToEncoding(const string &from, const string &encoding) |
77 |
{ |
77 |
{ |
78 |
#ifndef WIN32 |
78 |
#if !defined(WIN32) && defined(HAVE_ICONV) |
79 |
string to; |
79 |
string to; |
80 |
|
80 |
|
81 |
if (strcasecmp(encoding.c_str(), "utf-8") == 0) |
81 |
if (strcasecmp(encoding.c_str(), "utf-8") == 0) |
Lines 106-112
string utf8ToEncoding(const string &from
Link Here
|
106 |
|
106 |
|
107 |
string utf8FromEncoding(const string &from, const string &encoding) |
107 |
string utf8FromEncoding(const string &from, const string &encoding) |
108 |
{ |
108 |
{ |
109 |
#ifndef WIN32 |
109 |
#if !defined(WIN32) && defined(HAVE_ICONV) |
110 |
string to; |
110 |
string to; |
111 |
|
111 |
|
112 |
if (strcasecmp(encoding.c_str(), "utf-8") == 0) |
112 |
if (strcasecmp(encoding.c_str(), "utf-8") == 0) |