def check_encoding(encoding):
    ET.XML(
        "<?xml version='1.0' encoding='%s'?><xml />" % encoding
        )
>>> check_encoding("ascii")
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_xml_etree_c.py/check_encoding