Re: [PHP] Encode e-mail text in UTF-8

2012-11-21 Thread MC
Hi, I have finally found the root issue. Basically, the issue does not lie in imap methods, rather it lies in PHP core. PHP is not consistent in naming variables inside the $_SERVER array. While running under Apache, it creates $_SERVER['WINDIR'], while running directly from command line it

Re: [PHP] Encode e-mail text in UTF-8

2012-11-21 Thread MC
what is the recommended way to encode e-mail text in UTF-8? When the site were running in a single byte code page like iso-8859-2 I were happy with the imap_8bit function and quoted-printable encoding of e-mails. However, the function does not seem to work correctly for multi-byte code pages like

Re: [PHP] Encode e-mail text in UTF-8

2012-11-20 Thread Inigo Medina
On Tue, 20 Nov 2012, MC wrote: Hi, what is the recommended way to encode e-mail text in UTF-8? When the site were running in a single byte code page like iso-8859-2 I were happy with the imap_8bit function and quoted-printable encoding of e-mails. However, the function does not seem to work

[PHP] Encode e-mail text in UTF-8

2012-11-20 Thread MC
Hi, what is the recommended way to encode e-mail text in UTF-8? When the site were running in a single byte code page like iso-8859-2 I were happy with the imap_8bit function and quoted-printable encoding of e-mails. However, the function does not seem to work correctly for multi-byte code pa