'Return the encoding/codepage to use.'

def _get_encoding(self):

    enco = 'utf-8'
    if WIN:
        import ctypes
        codepage = to_text_string(ctypes.cdll.kernel32.GetACP())
        enco = ('cp' + codepage)
    return enco
