Git Product home page Git Product logo

Comments (5)

spookylukey avatar spookylukey commented on August 22, 2024

I need more information to understand your bug:

  1. What do you mean by non-unicode characters? There aren't any non-unicode characters that should be making it this far into your app.

  2. What version of Python, django and django-mailer are you using?

  3. For you changes, it is always better to send a diff to make it clear what it was changed from and to.

from django-mailer.

spookylukey avatar spookylukey commented on August 22, 2024

I have checked the code and it seems to work on both Python 2 and 3. However, the line you highlighted could be handled better, so I've also pushed a commit that improves it - 9e94f60 . Please let me know if you still have problems - post a traceback, and the data that causes it to go wrong.

from django-mailer.

burzillibus avatar burzillibus commented on August 22, 2024

Hi Luke,
sorry if my previous issue comment was uncompleted.
In my case I've a subject like "Attività del giorno" and the char 'à' rises the error.
My configuration is:

  • Django==1.8.8
  • django-mailer==1.1
  • mailer==0.8.1
  • python 2.7

I can't upgrade mailer because it upgrade even Django, and the application isn't compliant with the new one :'(
I saw your commit and it's working for me.

Thank you very much

from django-mailer.

spookylukey avatar spookylukey commented on August 22, 2024

There is no problem using django-mailer with Django 1.8.8. I think you probably did:

pip install --upgrade django-mailer

This upgrades everything that django-mailer depends on. However, if you do:

pip install django-mailer==1.2.2

you should have no problem - it won't upgrade Django. You can also install from VCS https://pip.pypa.io/en/stable/reference/pip_install/#git

from django-mailer.

spookylukey avatar spookylukey commented on August 22, 2024

The code you've edited was already changed since 1.1, with tests showing that it works with unicode. Please upgrade to the latest version:

pip install django-mailer==1.2.2

from django-mailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.