[Tutor] pythonic ascii decoding!
badouglas at gmail.com
Mon Jul 31 11:39:46 EDT 2017
Testing getting data from a number of different US based/targeted
websites. So the input data source for the most part, will be "ascii".
I'm getting a few "weird" chars every now and then asn as fas as I can
tell, they should be utf-8.
However, the following hasn;t always worked:
So, is there a quick/dirty approach I can use to simply strip out the
"non-ascii" chars. I know, this might not be the "best/pythonic" way,
and that it might result in loss of some data/chars, but I can live
with it for now.
More information about the Tutor