Jun 30, 2001, 4:42 PM
Post #1 of 1
HTML e-mail and charset=iso-8859-1
I’m using the command:
Content-type: text/html; charset=\"iso-8859-1\" \n\n
In the header of my message to send an HTML Ezine unsing a Perl script. It turned out some e-mail severs couldn’t handle it, and gave this response:
This message uses a character set that is not supported by the Internet Service. To view the original message content, open the attached message. If the text doesn't display correctly, save the attachment to disk, and then open it using a viewer that can display the original character set. <<message.txt>>
I then tried:
Content-type: text/html; charset="iso-8859-1" \n\n
Content-type: text/html; charset=iso-8859-1 \n\n
With the same results. Before I only used:
Content-type: text/html \n\n
And all went well, but some people complained that they couldn’t read the extended characters (strange symbols instead). The Ezine is published in Spanish, so I need to make sure the following characters render correctly:
Ñ ñ Á á É é Í í Ó ó Ú ú
That why I need character code iso-8859-1.
Content-type: text/html; charset="us=ascii"
work for the extended characters? Is it different from the line: <META HTTP-EQUIV="Content-Type" CONTENT="text/html" CHARSET="iso-8859-1"> that we use in web pages?
Any help, comments and/or suggestions will be very appreciated.
Thanks in advance for your cooperation.