Python Forum

Full Version: How to know the type of encoding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I'm codin in python 2.7, I want to send alert mail, and the mail I send look like, I use UTF-8 for the encoding:

oui é : mécontentement suite à refus subvention pour association sportive du collège
oui é : subvention ANACR
oui é : dde de subvention pour acquérir un abri

String of characters from the parameters
String of characters from my database in sql

Typical french problem, é = é.

So I want to know how can i know the encoding type of my character string
You should coding in Python 3.x
There is "str" always "utf-8".