当我试图在UTF-8中找到一句话时,我接着说:
UnicodeEncodeError
UnicodeEncodeError: ascii codec can t encode characters in position 0-4: ordinal not in range(128)
这是我做的。
tr.words_count = (str(tr.transcribe).count( ))
I need to calculate how many words in UTF-8 text and it seems that my method won t work. Do you have any ideas? Thanks