You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def words(f):
for line in f:
for word in wordre.findall(line.decode('UTF-8')):
yield word
which assumes line has a decode method, but the supported_format (TEXT) does not explicitly specify that the encoding is utf-8. So if the content is passed as an embedded string in the request, with no encoding information, the process fails.
The text was updated successfully, but these errors were encountered:
Description
In the _handler, we have
which assumes
line
has adecode
method, but the supported_format (TEXT) does not explicitly specify that the encoding is utf-8. So if the content is passed as an embedded string in the request, with no encoding information, the process fails.The text was updated successfully, but these errors were encountered: