diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-12-22 00:38:20 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-12-22 00:38:20 +0000 |
commit | 19305e0c179bfe2581a2cd4b941c5886d6ecab93 (patch) | |
tree | 69bbfbdd2b09e5bcb0827033dbbdbeab3d3bc37c | |
parent | 1b50be65056f9f625a2242b3eab128b2c1c2ad7f (diff) |
svn-sync 14362: Fixed HTML decoding
git-svn-id: http://svn.miranda-ng.org/main/trunk@2787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-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
|