- post_author = post.author.username
- safe_post_author = html.mark_safe(post.author.username)
- comment_author = html.mark_safe(comment.author)
- question_title = html.mark_safe(question.title)
- safe_body = html.html2text(comment.comment)
+ post_author = smart_str(post.author.username)
+ safe_post_author = html.mark_safe(smart_str(post.author.username))
+ comment_author = html.mark_safe(smart_str(comment.author))
+ question_title = html.mark_safe(smart_str(question.title))
+ safe_body = html.html2text(smart_str(comment.comment))