What you said made sense.
Using Charset Decoder at http://www.webatic.com/run/chars/charset_decoder.php
, I tested encoding of accented characters by UTF-8 and decoding same by using iso-8859-2.
It proved that in my setup PHPMailer uses UTF-8 characters writing to my Windows 7 set to iso-8859-2 (default input language Hungarian).
Knowing unfortunately is not the same as making it work.
I originally wrote the PHPMail script with NotePad in Windows 7 set to iso-8859-2. I now tried writing the PHPMail code in HTML editor set to iso-8859-2. It did not change the outcome. Accented letters still come out as garbage in echo "Message has been sent ~ Üzenet elküldve.";
While searching through half of Internet, I found what may solve my need.
/* Set internal character encoding to iso-8859-2*/
This command is not enabled by default, it must be installed. However, all my searches did not turn up an example for how I could install it.
Could you or someone help me out?