This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gkraser
Recipients gkraser
Date 2010-09-05.07:36:07
SpamBayes Score 3.6963982e-05
Marked as misclassified No
Message-id <1283672170.42.0.322683308746.issue9779@psf.upfronthosting.co.za>
In-reply-to
Content
argparse.ArgumentParser not support unicode in print help.

Example:

# -*- coding: utf-8 -*-
import argparse
import unittest

class Test1(unittest.TestCase):
    def test_unicode_desc(self):
        h = u'Rus Рус'      # unicode
        print h             # ok
        parser = argparse.ArgumentParser(description=h)
        parser.print_help() # error
History
Date User Action Args
2010-09-05 07:36:10gkrasersetrecipients: + gkraser
2010-09-05 07:36:10gkrasersetmessageid: <1283672170.42.0.322683308746.issue9779@psf.upfronthosting.co.za>
2010-09-05 07:36:08gkraserlinkissue9779 messages
2010-09-05 07:36:08gkrasercreate