+ Reply to Thread
Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 38 of 38

Thread: Solution for Encoding From Header in utf-8

  1. #31
    Join Date
    Feb 2010
    Posts
    2

    Default Re: Solution for Encoding From Header in utf-8

    Thanks for sharing.

    KG

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

    Thumbs up Re: Solution for Encoding From Header in utf-8

    Hi,

    OK, further tests have shown there is a problem.

    The problem appears to be a bug in PHP.

    We've put in a workaround for that problem, but then we also decided to handle header line folding (76 chars is recommended but not required by the internet standards).

    The folding then caused problems with the quoted printable encoding.

    We're now working on resolving these.

    Version 8.22 of FormMail will be released as soon as everything is beta tested and this should resolve all these utf-8 problems.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #33
    Join Date
    May 2009
    Posts
    32

    Default Re: Solution for Encoding From Header in utf-8

    I can confirm that the last test was successful in all aspects.

    I used a test page with a goodtemplate for the web and a HTML Template for the outgoing email. Both are utf-8. The page with the form is utf-8 too.

    All characters in these test files are typed in as "true" characters, not html coded. So I use the letter Å not "&#197 ;" or "Å" in the code. Just as I would do in any other text.

    And it all works.

    So look out for version 8.22 folks.

    Thanks Russell!

  4. #34
    Join Date
    May 2012
    Posts
    3

    Default Re: Solution for Encoding From Header in utf-8

    FormMail ver. 8.33.

    I have set CharSet in my template to UTF-8 - nothing, modified formmail.php (like someone on this forum suggested):
    PHP Code:
    else if (IsMailOptionSet("CharSet"))        $s_charset GetMailOption("CharSet");    if ($s_charset != "UTF-8"
    and added (for Pete's sake) <meta> tag into template HTML. Finally I have UTF-8 characters in my e-mail body but none in subject (still).

    I do not know what else to modify, change to get the desired result. Any help?

  5. #35
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Solution for Encoding From Header in utf-8

    Hi,

    Have you used "mail_options" and set CharSet using that:
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  6. #36
    Join Date
    May 2012
    Posts
    3

    Default Re: Solution for Encoding From Header in utf-8

    Yes. This is exactly what I've done:

    @my form HTML file:
    Code:
    <input type="hidden" name="mail_options"
        value="CharSet=UTF-8,HTMLTemplate=template.html" />
    @my template HTML file:
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    I know that email apps ignore HTML meta tags but still I wanted to "be sure".
    And the body of an e-mail itself is ok. Just the "from" area is corrupted.

    Maybe there's something that I've missed, overlooked?

  7. #37
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Solution for Encoding From Header in utf-8

    Hi,

    FormMail definitely encodes the From header and the Subject header (just the name not the email address, of course) according to RFC 2047 using the CharSet you've specified.

    It may be your email client isn't compliant.

    Try sending copies to GMail, HotMail, Yahoo etc. and look at them in a web browser.

    If you need assistance, don't forget we offer guaranteed support.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  8. #38
    Join Date
    May 2012
    Posts
    3

    Default Re: Solution for Encoding From Header in utf-8

    I am using mainly MS Outlook 2007. Some of my friends are using Outlook 2003.

    OK, I'll try it on another email client and/or web client like GMail. I'll report the results ASAP.

    PS. also I have a problem with "good_url"/"bad_url" but it's not so important right now. Even that I've put them into input tags/hidden into my Form HTML file I am recieving the return message from formmail.php. But - as I've mentioned - not so important right now, I'll deal with it later.

    ## edit ##
    OK, that is a problem with Outlook. GMail recieves message in UTF-8, and the "subject"/"from" fields are OK. Sorry for the commotion, I should have checked it before posting. I'll try to deal with Outlook and then the "good/bad_url" problem.

    ## edit2 ##
    I do not know what happened, I did not change anything but right now I am getting mails on my Outlook with UTF-8 characters in subject/from area. All I did was change from my company e-mail to my private e-mail (GMail) and back. WEIRD!
    Last edited by Marb; 18-May-2012 at 07:00 AM.

+ 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. Forcing charset in e-mail header
    By Wojtek in forum FormMail Subscription Support
    Replies: 14
    Last Post: 22-Feb-2005, 09:28 AM
  2. Session and Header errors
    By orange in forum FormMail Subscription Support
    Replies: 2
    Last Post: 09-Dec-2004, 02:16 AM
  3. Form attachments - encoding issue
    By mark70 in forum FormMail Subscription Support
    Replies: 5
    Last Post: 06-Oct-2004, 08:45 PM
  4. Error with Encoding
    By dunn123 in forum FormMailEncoder/Decoder
    Replies: 5
    Last Post: 06-Jul-2004, 09:39 PM

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