Re: [PHP] Switch - Case Statement Questions

2012-11-21 Thread Tedd Sperling
On Nov 19, 2012, at 2:46 PM, Stuart Dallas wrote: > On 19 Nov 2012, at 19:35, Tim Streater wrote: > >> On 18 Nov 2012 at 14:44, Jim Giner wrote: >> Just so. Perhaps those who are not grasping the point could re-read their >> copy of "The Elements of Programming Style" by Kernighan and Plauge

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