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
Tue Aug 26 11:06:22 2014] [error] [client 192.168.21.146] File "/opt/lang/python/virtualenvs/3.4/bi/lib/python3.4/site-packages/webassets/merge.py", line 60, in save [Tue Aug 26 11:06:22 2014] [error] [client 192.168.21.146] f.write(self.data()) [Tue Aug 26 11:06:22 2014] [error] [client 192.168.21.146] UnicodeEncodeError: 'ascii' codec can't encode character '\\xa0' in position 158569: ordinal not in range(128)
The fopen method fails to set the encoding when writing bytes back out to the cached file.
def save(self, filename):
with open(filename, 'w') as f:
f.write(self.data())
I will be submitting a pull request for this.
The text was updated successfully, but these errors were encountered:
Tue Aug 26 11:06:22 2014] [error] [client 192.168.21.146] File "/opt/lang/python/virtualenvs/3.4/bi/lib/python3.4/site-packages/webassets/merge.py", line 60, in save [Tue Aug 26 11:06:22 2014] [error] [client 192.168.21.146] f.write(self.data()) [Tue Aug 26 11:06:22 2014] [error] [client 192.168.21.146] UnicodeEncodeError: 'ascii' codec can't encode character '\\xa0' in position 158569: ordinal not in range(128)
The
fopen
method fails to set the encoding when writing bytes back out to the cached file.I will be submitting a pull request for this.
The text was updated successfully, but these errors were encountered: