Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Member
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    71

    Default mail encoding problem in autoresponder

    I need to change the encoding and charset values for the mails sent by the autoresponder, since the default usascii encoding wont display mails in japanese correctly. Where are these values set so that I can chaneg them manually?

  2. #2
    Member
    Join Date
    Jun 2002
    Posts
    137

    Default

    i have the same problem.... no matter what char set i select... it all go back to us-ascii

    is there a way to fix it?

  3. #3
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Are you by chance using an English language cPanel?
    I think you will have to use a custom skin so that the encoding on the autoresponder edit page is either shift_JIS or euc-jp. Even if you do not translate the entire skin, you should at least add the Japanese charset at the top.
    I am using a custom skin, and the autoresponders work for me...

  4. #4
    Member
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    71

    Default

    Thanks for the info.

    Yes, I use euc-jp for charset in cpanel skin, but the problem is that in Japan, mails are usually sent/read using JIS encoding, and websites use shift-jis or euc-jp.

    Which file is used to send autoreply in CPanel? I think i need to have it change the encoding of the autoresponse message before it is actually sent.

  5. #5
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Hmmm. I'm using shift_JIS for my cp, and the autoresponder works fine. The encoding of the e-mail is shift_JIS, and I haven't changed anything other than the encoding of the page the autoresponder is made on.

  6. #6
    Member
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    71

    Default

    I am not sure why it does work for you using Shift_JIS, since in japan, mails are read using JIS(ISO-2022-JP), and the "From" and "Subject" headers must be base64 encoded.

    I am currently rewriting the cpanel html files to php files that will save the autoresponders to /home/xxx/.autorespond with the JIS encoding, and set the charset to ISO-2022-JP.

  7. #7
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Oh, you're talking about the subject? No, I'm using English for the subject. You're right, that would get garbled. The body of the message is fine, though. For the body you could use shift_JIS, euc-jp, or probably even UTF-8.

  8. #8
    Member
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    71

    Default

    Yes, you can use other encodings for the body part, but the problem is that in Japan, mails are usually sent using JIS encoding, so the mailers default to using JIS to read mail, and that non techy users dont know how to change the encoding of the text when they receive non-JIS mails.
    Last edited by myweb; 05-08-2003 at 10:00 PM.

  9. #9
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Are your users using Outlook Express? Most people have the encoding set to "nihongojidosentaku"?@and this will automatically show the e-mail in the correct encoding regardless of whether it comes in ISO, shift_JIS or euc-jp.

    --

    Oops, I take that back. I just tested it on my computer at work, and it came encoded in western ISO. Crap. I must have done some "techy" setting on my computer at home.

    Sorry for the confusion. It looks like I'm in trouble, too. Let me know if you get this thing fixed.

    Last edited by casey; 05-08-2003 at 10:14 PM.

  10. #10
    Member
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    71

    Default

    Most mailers dont have the default encoding option so it will use Windows ISO (different from ISO-2022-JP) for the autoresponder mails, since they use us-ascii for charset..
    If the charset in mail header is set to ISO-2022-JP, the mailer will use JIS to read mail correctly.

    This mail encoding problem is very famous in japan and we always have problem using non-Japanese scripts.

  11. #11
    Member
    Join Date
    Jun 2002
    Location
    Tokyo
    Posts
    71

    Default

    I will let you know if I can fix this using PHP (probably will be a dirty hack), but the best is that Cpanel devs take this into consideration and allow us to change the charset header of mails

  12. #12
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default Re: mail encoding problem in autoresponder

    Crap. I shoulda kept my mouth shut.
    Well, let me repeat the original question, because now I need the answer, too!

    Originally posted by myweb
    I need to change the encoding and charset values for the mails sent by the autoresponder, since the default usascii encoding wont display mails in japanese correctly. Where are these values set so that I can chaneg them manually?

  13. #13
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Originally posted by myweb
    I am not sure why it does work for you using Shift_JIS, since in japan, mails are read using JIS(ISO-2022-JP), and the "From" and "Subject" headers must be base64 encoded.

    I am currently rewriting the cpanel html files to php files that will save the autoresponders to /home/xxx/.autorespond with the JIS encoding, and set the charset to ISO-2022-JP.
    It would be nice to be able to change the charset once, wherever that piece of code is stored. I'm going to send in a support request and see what they say.

  14. #14
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    I got a really fast response from cpanel support, but it was not one that I wanted to hear:

    Even if you could change this, chances are the changes would be wiped out by cPanel updates every time updates ran.
    I guess he's telling me that I can't change it, right?

  15. #15
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Using the chattr command you can stop cpanel from over writting the changes. But you also though lose any changes/updates from cpanel for those files.
    Regards,
    David
    Forum Moderator

Similar Threads & Tags
Similar threads

  1. Having Problem with Encoding
    By victory1 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-29-2010, 04:48 PM
  2. Autoresponder for aliased mail [bug]
    By bocosoft in forum E-mail Discussions
    Replies: 5
    Last Post: 07-30-2009, 03:38 AM
  3. Autoresponder problem -- need some help
    By sneader in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-19-2005, 01:22 AM
  4. I have a problem with autoresponder.
    By RedRider in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-25-2004, 04:45 AM
  5. autoresponder mail capture
    By notechie in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-29-2003, 05:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube