Hey,
Might be a confusing topic, but hang on here
Okey, I firstly got a problem with my script. I'm currently building a "get-mail" script where its connecting to a mail server, collecting the messages, and push all into a db. The major stuff I've got working, but I'm struggling on the charsets. I'm running a plain utf-8 base on the script, as I was hoping that would sort out the problems, but it dont look like that :/
Anyways. The body field of the mail output correctly, and I can encode it to utf-8 even when the mail is sent with iso-8859-1 charset, but the subject are making all sort of problems for me. If I write on english it outputs great (as it should), but when I use an norwegian letter like "æ, ø or å" the subject are all screwed up.
"Dette er et topic med å i header" turns to "Dette er et topic med =?ISO-8859-1?Q?=E5_i_header?=" even if I set the header to iso-8859-1, utf-8 or tries to encode the string to utf-8.
Any ideas what could be wrong in this matter, and how to fix it?
On the other side of the topic. Is there any "rules" how to keep an clean utf-8 base of scripting?
Best Regards,
A. Lyse