Python Forum
How to know the type of encoding
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to know the type of encoding
#1
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
Reply
#2
You should coding in Python 3.x
There is "str" always "utf-8".
Reply
#3
Or see here:
https://timothybramlett.com/Strings_Byte...and_3.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Type hinting - return type based on parameter micseydel 2 2,473 Jan-14-2020, 01:20 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020