Defect #14041

Email notification error: incompatible character encodings: UTF-8 and ASCII-8BIT

Added by Alexandr Sobolev about 9 years ago. Updated about 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email notifications
Target version:-
Resolution: Affected version:2.3.0

Description

Hello!
I'm configured notification via mail.ru.
My config file:

production:
   email_delivery:
     delivery_method: :smtp
     smtp_settings:
       address: smtp.mail.ru
       domain: mail.ru
       port: 25
       authentication: :login
       user_name: 'test@mail.ru'
       password: 'blabla'

When i send test mail, get error:

Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
  lib/redmine/i18n.rb:32:in `l'
  app/controllers/admin_controller.rb:68:in `rescue in test_email'
  app/controllers/admin_controller.rb:64:in `test_email'

Environment:
  Redmine version                          2.3.0.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.13
  Environment                              production
  Database adapter                         Mysql2

my session and global variables MySQL:

character set client            utf8
character set connection    utf8    
character set database            utf8    
character set filesystem    binary    
character set results            utf8    
character set server            utf8    
character set system            utf8
character sets dir            /usr/share/mysql/charsets/

Help please!
Thanks!

History

#1 Updated by Toshi MARUYAMA about 9 years ago

  • Subject changed from Email notification error to Email notification error: incompatible character encodings: UTF-8 and ASCII-8BIT

#2 Updated by Toshi MARUYAMA about 9 years ago

#3 Updated by Toshi MARUYAMA about 9 years ago

  • Status changed from New to Needs feedback

#4 Updated by Alexandr Sobolev about 9 years ago

  • yes
  • yes
  • my db was UTF-8

#5 Updated by Toshi MARUYAMA about 9 years ago

  • Status changed from Needs feedback to New

#6 Updated by Toshi MARUYAMA about 9 years ago

Sending test mail tests pass in all locales.
source:tags/2.3.1/test/unit/mailer_test.rb#L495

Also available in: Atom PDF