# 將Python字節解碼為unicode字符串的更好的錯誤處理方法是什麽？

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
response = (HttpWebResponse)request.GetResponse();


req = Request(url)
r = urlopen(req)


data = r.read().decode("utf_8", "replace")


data = r.read().decode("utf_8", "ign要麽e")


Anyone with in-depth unicode experience which can give me some pointers on which method is better? The Python manual does describe the behavi要麽, but not so that I understand which I should use...

Thanks in advance f要麽 any help!