PE¥A, HUMBERTO J., 86, of Miami, Florida passed away Tuesday, July 7, 2015 at home after a long illness. He is survived by his loving wife Sharon, children, Cristy and Jorge, stepson Carson, seven grandchildren and was predeceased by a son, Humberto. He is also survived by Angelita Barcena and his brother Antonio Pe¤a. He will be missed by all, especially by his beloved Dachshund, Barna. Visitation will be from 7:00-10:00 pm July 9, 2015 at Caballero-Rivero Westchester. Funeral Mass to be held at St. Kevin's Catholic Church, Friday July 10, 2015 at 10:30 am. Internment to follow. In Lieu of flowers, the family suggests donations in his name to The Jos‚ Mart¡ Foundation.
I want to insert this para into a csv file
// notice = above para //content.text = a_name
try:
a_writter.writerows([[content.text, url, notice]])
except UnicodeEncodeError:
try:
notice = unidecode(notice.encode('utf-8'))
a_writter.writerows([[content.text, url, notice]])
except UnicodeEncodeError:
content_text_encoded = unidecode(content.text.encode('utf-8'))
a_writter.writerows([[content_text_encoded, url, notice]])
But still instead of
"PE¥A, HUMBERTO J."
it prints
"PEY=A, HUMBERTO J."
How to get the exact encoding as the above notice?
**unidecode https://pypi.python.org/pypi/Unidecode