[gmime-devel] controling charset used in g_mime_utils_header_encode_text




Jeff,

is there a way to control the encoding used by mentioned call - and it's
sibling g_mime_utils_header_encode_phrase?

Even when I specifically set a preference to i.e. UTF-8 it keeps
encoding in ISO8859-1:

const char *sets[2] = {
 "UTF-8", "ISO8859-1"
};
g_mime_init(0);
g_mime_set_user_charsets(sets);
char *out = g_mime_utils_header_encode_text("jöst testing");
printf("[%s]\n", out);


still encodes this as

paul shiko:~/test/gmime$ make
gcc -g -Wall -o test test.c `pkg-config --cflags --libs gmime-2.6`
paul shiko:~/test/gmime$ ./test
[=?iso-8859-1?b?avZzdA==?= testing]





-- 
________________________________________________________________
Paul J Stevens        pjstevns @ gmail, twitter, skype, linkedin

  * Premium Hosting Services and Web Application Consultancy *

           www.nfg.nl/info nfg nl/+31.85.877.99.97
________________________________________________________________


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]