Linked Questions
24 questions linked to/from Python Unicode Encode Error
2 votes
2 answers
344 views
Python's .format() minilanguage and Unicode
I'm trying to use some of the simple unicode characters in a command line program I'm writing, but drawing these things into a table becomes difficult because Python appears to be treating single-...
1 vote
3 answers
875 views
RFID reader connection error with raspberry pi
We are trying to read RFID tags using raspberry pi b+. We used following script in the python . import serial import time serial=serial.Serial("/dev/ttyUSB0", baudrate=2400) while True: if ...
2 votes
0 answers
848 views
"'ascii' codec can't encode character" error from BeautifulSoup
Python newbie here. Currently writing a crawler for a lyrics website, and I'm running into this problem when trying to parse the HTML. I'm using BeautifulSoup and requests. Code right now is (after ...
0 votes
2 answers
790 views
Python3 UnicodeEncodingError
from selenium import webdriver from bs4 import BeautifulSoup driver = webdriver.Chrome(executable_path = r'C:\chromedriver_win32\chromedriver.exe') driver.get('https://www.imdb.com/') html_doc = ...
0 votes
1 answer
734 views
json encoded as UTF-8 characters. How do I process as json in Python Requests
I am scraping a website that is rendering a JavaScript/JSON Object that looks like this: { "company": "\r\n \x3cdiv class=\"page-heading\"\x3e\x3ch1\x3eSEARCH RESULTS 1 - 40 OF 200\x3c/...
1 vote
0 answers
542 views
php shell_exec fails when return non-ascii string
using command $ret = shell_exec($command); results in $ret being null when $command returns string containing non-ascii characters (papír), but it works when $command returns string without non-ascii ...
1 vote
1 answer
330 views
Remove non printable words
I'm trying to store frequencies of words in a text in a Python dictionary. I apply some normalizations to the text to remove accent marks, symbols, punctuation, etc but after all of this the text ...
0 votes
0 answers
87 views
convert ascii characters in python
I am trying to pull data from salesforce however facing some issues while reading ascii characters.For example Original value in salesforce db 6 articles, plus 2 pieces of content labeled “expert ...
0 votes
1 answer
63 views
Python Sqlite can't write correctly when there is "’" in a string
I'm trying to write some news headline into CSV using python CSV module and it seems that when there is an Apostrophe in a headline, such as 'What’s So Great About Snapchat Anyway?', then encode error ...