From 19305e0c179bfe2581a2cd4b941c5886d6ecab93 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 22 Dec 2012 00:38:20 +0000 Subject: svn-sync 14362: Fixed HTML decoding git-svn-id: http://svn.miranda-ng.org/main/trunk@2787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/src/conv.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'protocols/AimOscar') 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 -- cgit v1.2.3