YouTube API UnicodeEncodeError in Python 3.4
问题 I was exploring the YouTube Data API and finding that improperly encoded results were holding me back. I got good results until I retrieve a set that includes unmapped characters in the titles. My code is NOW (cleaned up a little for you fine folks): import urllib.request import urllib.parse import json import datetime # Look for videos published up to THIS MANY hours ago IntHoursToSub = 2 RightNow = datetime.datetime.utcnow() StartedAgo = datetime.timedelta(hours=-(IntHoursToSub)) HourAgo =