#include <string.h>
#include <stdlib.h>
#include <errno.h>
+#include <courier-unicode.h>
#include "rfc822hdr.h"
#include "rfc2047.h"
-#include "../unicode/unicode.h"
#if LIBIDN
#include <idna.h>
memcpy(buf, content, cnt);
buf[cnt]=0;
- ptr=libmail_u_convert_tobuf(buf, chset, s->chset, NULL);
+ ptr=unicode_convert_tobuf(buf, chset, s->chset, NULL);
free(buf);
if (ptr)
if (chset == NULL)
{
- s.chset="iso-8859-1";
+ s.chset="utf-8";
}
else
{
(*print_func)(p, strlen(p), ptr);
else
{
- char *q=libmail_u_convert_tobuf(utf8_ptr,
+ char *q=unicode_convert_tobuf(utf8_ptr,
"utf-8",
chset, NULL);
if (q)
if (strchr(RFC822_SPECIALS, nbuf.bufptr[i]))
break;
- cpbuf=libmail_u_convert_tobuf(nbuf.bufptr, "utf-8", charset,
+ cpbuf=unicode_convert_tobuf(nbuf.bufptr, "utf-8", charset,
NULL);
if (!cpbuf)
}
if (i)
- (*callback)("iso-8859-1", "", text, i, ptr);
+ (*callback)("utf-8", "", text, i, ptr);
text += i;
if (rc == 0)
{
- (*callback)("iso-8859-1", "", text, 2, ptr);
+ (*callback)("utf-8", "", text, 2, ptr);
text += 2;
continue;
}