мимоходом |
[апр. 22, 2013|12:17 pm]
Anatoly Vorobey
|
Хорошее название класса:Beautiful Soup uses a class called UnicodeDammit to detect the encodings of documents you give it and convert them to Unicode, no matter what. If you need to do this for other documents (without using Beautiful Soup to parse them), you can use UnicodeDammit by itself. Некстати: я всегда полагал, что название библиотеки BeautifulSoup - аллюзия на песню у Кэрролла, но на официальном сайте и странице Википедии нигде не вижу подтверждения этому; неужели совпадение? Думаю, все-таки нет.
P.S. Еще мне "UnicodeDammit" напомнило Programming, Motherfucker. |
|