Update course_about.html

if course title use Chinese or other language got the 500 error when visit the course_about page ,and the log shows :UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
This commit is contained in:
Jason Zhu
2014-03-27 23:00:02 +08:00
parent 26f133904c
commit a29485960d

View File

@@ -238,7 +238,7 @@
tweet_action = "http://twitter.com/intent/tweet?text=I+just+registered+for+{number}+{title}+through+{account}:+{url}".format(
number=course.number,
title=get_course_about_section(course, 'title'),
title=get_course_about_section(course, 'title').encode('utf-8'),
account=microsite.get_value('course_about_twitter_account', '@edxonline'),
url="http://{domain}{path}".format(
domain=site_domain,