Page 1 of 4 1234 LastLast
Results 1 to 10 of 32

Thread: Mail Encoding

  1. #1
    cjcraven is offline Member
    Join Date
    Apr 2006
    Posts
    6

    Default Mail Encoding

    Hi,
    After struggling with the scheduler I succeeded in getting the Sugar 4.0.1e to download my mail. However in English or Japanese mode the header and the body of Japanese language mails are in code not the proper encoding. How can I correct this?

    Sample Header
    =?ISO-2022-JP?B?W1QbJEJDbUo4PnU2NxsoQl0gGyRCJDRDbUo4PHVJVT51N jckTiQqGyhC?= =?ISO-2022-JP?B?GyRCQ04kaSQ7GyhCICMxMDgz?=

  2. #2
    sugarchris's Avatar
    sugarchris is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    San Francisco, CA
    Posts
    861

    Default Re: Mail Encoding

    This is a known issue in current release versions of Sugar. We are working on this and many related localization/internationalization fixes for 4.5.

  3. #3
    cjcraven is offline Member
    Join Date
    Apr 2006
    Posts
    6

    Default Re: Mail Encoding

    Ouch! I just got 4.0.1e to work (failed 4.2.0 (not database 4.2)) and made the below changes for the English interface and mailer to support Japanese but incoming is still not right. I guess it will be a while judging from the release number 4.5. No patch in between?

    config.php => 'default_charset' => 'UTF-8',
    include\language\en_us.lang.php => 'LBL_CHARSET' => 'UTF-8',
    include\phpmailer\class.phpmailer.php => $CharSet = "utf-8;

    Craig

  4. #4
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,376

    Default Re: Mail Encoding

    Hi,

    Please try the Japanese language pack which comes with several I18N/L10N patches.
    http://www.sugarforge.org/projects/japanese/

    It works with 4.0.1c, not with 4.0.1e though.

  5. #5
    cjcraven is offline Member
    Join Date
    Apr 2006
    Posts
    6

    Default Re: Mail Encoding

    Uchida-san
    Thank you for your reply. Does that mean my options are to reinstall 4.0.1c or to wait for the next language patch release?

    Craig

  6. #6
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,376

    Default Re: Mail Encoding

    Craig,

    Yes, and the next patch will be for 4.2.0a. Stay tuned....

  7. #7
    cjcraven is offline Member
    Join Date
    Apr 2006
    Posts
    6

    Default Re: Mail Encoding

    I'm still struggling with the scheduler, actually the cron setting, and it looks to be a while before I get email running. There is a lot to learn too, hopefully should be ready by the time your release is finished.

    Craig (Osaka)

  8. #8
    Webguardian is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    26

    Default Re: Mail Encoding

    Hello,

    Iím having the same issue with incoming Japanese emails. Iím using SugarCRM 4.2.0.a with Japanese language pack. My browser is set to encode with Unicode(UTF-8). Iíve tried the different Japanese encoding options and Iím still seeing question marks instead of Japanese kanji. I will attach a screen shot of what I see. Does anyone have any ideas how to overcome this?

    Kind Regards

    Last edited by Webguardian; 2006-07-01 at 12:11 AM. Reason: forgot attachment

  9. #9
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,376

    Default Re: Mail Encoding

    Hi,
    I have no problem with 4.2.0a Japanese in receiving/sending an email in Japanese.

    The encoding fully depends on your mbstring settings in php.ini. What is your mbstring.internal_encoding or other settings?
    Attached Images Attached Images  

  10. #10
    cjcraven is offline Member
    Join Date
    Apr 2006
    Posts
    6

    Default Re: Mail Encoding

    Hi Ruchida,
    Thanks for the posting. If I look at my php.ini file I find the following settings. Can you advise what would be the correct settings?

    [mbstring]
    ; language for internal character representation.
    ;mbstring.language = Japanese

    ; internal/script encoding.
    ; Some encoding cannot work as internal encoding.
    ; (e.g. SJIS, BIG5, ISO-2022-*)
    ;mbstring.internal_encoding = EUC-JP

    ; http input encoding.
    ;mbstring.http_input = auto

    ; http output encoding. mb_output_handler must be
    ; registered as output buffer to function
    ;mbstring.http_output = SJIS

    ; enable automatic encoding translation accoding to
    ; mbstring.internal_encoding setting. Input chars are
    ; converted to internal encoding by setting this to On.
    ; Note: Do _not_ use automatic encoding translation for
    ; portable libs/applications.
    ;mbstring.encoding_translation = Off

    ; automatic encoding detection order.
    ; auto means
    ;mbstring.detect_order = auto

    ; substitute_character used when character cannot be converted
    ; one from another
    ;mbstring.substitute_character = none;

    ; overload(replace) single byte functions by mbstring functions.
    ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
    ; etc. Possible values are 0,1,2,4 or combination of them.
    ; For example, 7 for overload everything.
    ; 0: No overload
    ; 1: Overload mail() function
    ; 2: Overload str*() functions
    ; 4: Overload ereg*() functions
    ;mbstring.func_overload = 0

Page 1 of 4 1234 LastLast

Thread Information

Users Browsing this Thread

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

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
  •