#!/usr/bin/env python import warnings as _warnings _warnings.resetwarnings() _warnings.filterwarnings('error') # BEGIN INCLUDE from tdi import html # xml prolog template = html.from_string( """...""" ) print template.encoding # meta template = html.from_string( """ """ ) print template.encoding # meta HTML5 template = html.from_string( """ """ ) print template.encoding # xml prolog + meta template = html.from_string( """ """ ) print template.encoding # none template = html.from_string("...") print template.encoding