转换文本编码实用程序
textconverter的Python项目详细描述
示例
from textconverter import convert text = 'nanika' text = convert.to_utf8(text) text = convert.utf8_to_eucjp(text) texts = ['hoge', 'fuga'] texts = convert.to_sjis(texts) texts = convert.sjis_to_utf8(texts)
转换文本编码实用程序
示例
from textconverter import convert text = 'nanika' text = convert.to_utf8(text) text = convert.utf8_to_eucjp(text) texts = ['hoge', 'fuga'] texts = convert.to_sjis(texts) texts = convert.sjis_to_utf8(texts)