OK, the problem seems to be with Qt/PyQt. The code in question is inside qbzr/lib/run.py, method set_cmd_help lines 242-256. Specifically this line:
self.ui.help_browser.setHtml( get_help_topic_as_html("commands/" + cmd_name))
Function get_help_topic_as_html returns as utf-8 encoded html as string, and we pass this string into QTextBrowser object. I suspect Qt expect unicode from us.
OK, the problem seems to be with Qt/PyQt. The code in question is inside qbzr/lib/run.py, method set_cmd_help lines 242-256.
Specifically this line:
self.ui. help_browser. setHtml(
get_help_ topic_as_ html("commands/ " + cmd_name))
Function get_help_ topic_as_ html returns as utf-8 encoded html as string, and we pass this string into QTextBrowser object. I suspect Qt expect unicode from us.