gensim.utils.any2utf8()

gensim.utils.any2utf8(text, errors='strict', encoding='utf8')[source]

Convert a string (unicode or bytestring in encoding), to bytestring in utf8.