+ Reply to Thread
Results 1 to 4 of 4

Thread: Just wrong charset in email subject

  1. #1
    Join Date
    May 2009
    Posts
    5

    Default Just wrong charset in email subject

    Hello all,

    I apologize if this message falls in the wrong forum for this is my first message.

    The difference with the "Wrong charset in email subject" thread is that I ran into charset troubles with the From, Subject fields as well as with the message body. First of all, my configuration is:

    Client : French Windows XP SP3 with Internet Explorer 8,
    Server : Linux n3.mutu.sivit.org 2.6.26.5-node-grsec #1 SMP Fri Oct 3 07:01:30 CEST 2008 i686 with PHP Version 5.2.6-5

    Indeed, I can provide more details if needed.

    Following the advice of the FormMail author himself, whom I thank, I inserted the <input type="hidden" name="mail_options" value="CharSet=utf-8" /> instruction into the form description within the php page. The outcome was poor with the french letters that do not exist in english language ; but it was already better than without the utf-8 instruction. Anyway, I ran various settings using various client mail readers and here you are with the results:

    | Eudora | Thunderbird
    __________________________________________________________________________________________________________________________________________________
    Page setting | From and subject fields | Message body | Comment | From and subject fields | Message body | Comment
    __________________________________________________________________________________________________________________________________________________
    utf-8 | Bad | Bad | Bad | Bad | Bad | Bad
    ISO-8859-1 | Bad | Good | Poor | Good | Good | The best
    No setting | Not tested | Not tested | Bad | Bad | Bad | Bad

    The bottom line is that:
    - the page setting, that is, the <META http-equiv="Content-Type" content="text/html; charset=xxxx"> setting, matters,
    - the ISO-8859-1 page setting is better than the utf-8 page setting.

    I am quite puzzled by the results and suspect FormMail to behave wrongly. Indeed I might have missed something but if so, would like to know what.

    Please, tell me.

    Best regards.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Just wrong charset in email subject

    Hi,

    I had trouble reading your summary, but I gather that this works best:
    HTML Code:
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    in the page header, plus this instruction to FormMail:

    HTML Code:
    <input type="hidden" name="mail_options" value="CharSet=ISO-8859-1" />
    And that the only problem is with the email headers (From and Subject, specifically).

    If I've understood the situation correctly, then the problem is twofold:
    1. The content-type inside an email does not affect the header fields. That's the way the email standard is specified.
    2. The email standard does specify a way to handle international header fields, but FormMail doesn't yet have that feature.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    May 2009
    Posts
    5

    Default Re: Just wrong charset in email subject

    Thank you for your prompt reply. I am sorry for not having being clear enough.

    I noticed that the best settings, so far, are:
    - <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    in the page header,
    - plus this instruction to FormMail:
    <input type="hidden" name="mail_options" value="CharSet=utf-8" />.

    What I wanted to point out is that:
    - surprinsingly, the best page header setting is ISO-8859-1 rather than utf-8,
    - and, in addition to my previous message, when I tried the different settings, I had to quit my email client reader then relaunch it for every trial as if there was some variables initialisations problems. This was true with both Eudora and Thunderbird.

    Best regards.

  4. #4
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Just wrong charset in email subject

    Hi,

    - surprinsingly, the best page header setting is ISO-8859-1 rather than utf-8,
    Yes, but I think "best" still did not give you proper email headers. We're actually working on that feature now.

    - and, in addition to my previous message, when I tried the different settings, I had to quit my email client reader then relaunch it for every trial as if there was some variables initialisations problems. This was true with both Eudora and Thunderbird.
    Sounds like bugs in your email program - not anything to do with FormMail.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Pull-Down Menu for the Subject
    By sdavistx in forum FormMail Subscription Support
    Replies: 1
    Last Post: 01-Jul-2004, 10:16 PM
  2. Subject=<no subject>?
    By Thomas in forum FormMail Subscription Support
    Replies: 2
    Last Post: 14-Jun-2004, 11:35 PM
  3. "Internal Server Error": What'd I do wrong?
    By sgodun in forum FormMail Subscription Support
    Replies: 4
    Last Post: 16-May-2004, 01:01 AM
  4. Subject?
    By WuLabsWuTecH in forum FormMail Subscription Support
    Replies: 1
    Last Post: 08-Apr-2004, 12:03 AM
  5. What am I doing wrong?
    By fviegas in forum FormMail Subscription Support
    Replies: 1
    Last Post: 23-Jan-2004, 05:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts