#!/usr/bin/python # -*- coding: utf-8 -*- from Tradutor import * tradutor = Tradutor() def iniciar(x): try: text = x.decode("utf-8") except: text = x.decode("iso-8859-1") return tradutor.traduzir(text)