Найти
-
Пользователи
Полная версия:
url encode кирилица
Начало
»
Python для новичков
»
url encode кирилица
1
2
ritium
Сен. 27, 2010 13:06:53
import urllib
g=“привет”
print urllib.quote(g.decode('cp866').encode('utf-8'))
или так
import urllib
g=“привет”
print urllib.quote(g.decode('cp1251').encode('utf-8'))
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.
Powered by
DjangoBB