﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7267	clean_html() bug	Nikolay <djangoproject@…>	nobody	"The following is reproducible scenario for the issue:

{{{
[0:28 /home/nik]$ python
Python 2.5.2 (r252:60911, Apr 17 2008, 13:15:05) 
[GCC 4.2.3 (Debian 4.2.3-3)] on linux2
Type ""help"", ""copyright"", ""credits"" or ""license"" for more information.
>>> import django
>>> django.utils.html.clean_html(""<p>* * *</p><p>.</p>"")
Traceback (most recent call last):
  File ""<stdin>"", line 1, in <module>
  File ""/home/niksite/lib/site-python/django/utils/functional.py"", line 239, in wrapper
    return func(*args, **kwargs)
  File ""/home/niksite/lib/site-python/django/utils/html.py"", line 158, in clean_html
    text = hard_coded_bullets_re.sub(replace_p_tags, text)
  File ""/home/niksite/lib/site-python/django/utils/html.py"", line 156, in replace_p_tags
    s = s.replace('<p>%s' % d, '<li>')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3: ordinal not in range(128)
>>> 
}}}"	Bug	closed	Core (Other)	dev	Normal	fixed	html	aymeric.augustin@… Preston Timmons	Ready for checkin	1	0	0	0	0	0
