Hi all,

i have problems in using the function utf8_text to convert a
text in iso-8859-1 format to utf-8. Can anybody tell me
how I have to correct my example code ?
If i print the result I get the converted utf-8 plus some
undefined characters.

Many thanks
Stefan

----------------- source ------------------------

SIZEDTEXT source;
SIZEDTEXT dest;

char* text = (char*) malloc (8);
memset(text, 0x0,8);
strcpy(text, "Fu�ball");

source.data = (unsigned char*) text;
source.size = strlen(text);

utf8_text(&source, "iso-8859-1", &dest, NIL);
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to