diff options
Diffstat (limited to 'protocols/AimOscar/src/conv.cpp')
-rw-r--r-- | protocols/AimOscar/src/conv.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/AimOscar/src/conv.cpp b/protocols/AimOscar/src/conv.cpp index 95ee6aac0a..41a0dd7099 100644 --- a/protocols/AimOscar/src/conv.cpp +++ b/protocols/AimOscar/src/conv.cpp @@ -98,7 +98,14 @@ void html_decode(char* str) char* s = strchr(p, ';');
if (s)
{
- *q = (char)atoi(p+2);
+ wchar_t t[2] = { (wchar_t)atoi(p+2), 0 };
+ char *t1 = mir_utf8encodeW(t);
+ if (t1 && *t1)
+ {
+ strcpy(q, t1);
+ q += strlen(t1) - 1;
+ }
+ mir_free(t1);
p = s;
}
else
|