'directory: startapp creates the correct directory with unicode characters'

def test_startapp_unicode_name(self):

    args = ['startapp', '\xe3\x81\x93\xe3\x82\x93\xe3\x81\xab\xe3\x81\xa1\xe3\x81\xaf']
    app_path = os.path.join(self.test_dir, '\xe3\x81\x93\xe3\x82\x93\xe3\x81\xab\xe3\x81\xa1\xe3\x81\xaf')
    (out, err) = self.run_django_admin(args, 'test_project.settings')
    self.addCleanup(shutil.rmtree, app_path)
    self.assertNoOutput(err)
    self.assertTrue(os.path.exists(app_path))
    with open(os.path.join(app_path, 'apps.py'), 'r', encoding='utf8') as f:
        content = f.read()
        self.assertIn('class    \xe3\x81\x93\xe3\x82\x93\xe3\x81\xab\xe3\x81\xa1\xe3\x81\xafConfig(AppConfig)', content)
        self.assertIn("name    =    '\xe3\x81\x93\xe3\x82\x93\xe3\x81\xab\xe3\x81\xa1\xe3\x81\xaf'", content)
