Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird unicode error with sparrow* bower and package files #93

Open
balmas opened this issue Aug 31, 2016 · 0 comments
Open

weird unicode error with sparrow* bower and package files #93

balmas opened this issue Aug 31, 2016 · 0 comments

Comments

@balmas
Copy link
Contributor

balmas commented Aug 31, 2016

I ran into a weird error today using the Sparrow* javascript packages in a Python app (perseids-client-apps) in Python 3.4 running under mod_wsgi in Apache 2.4 (Ubuntu 14.04). flask_bower.bower_url_for would crash loading the packages with the following error:

File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input,self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 155: ordinal not in range(128)

Even after setting the fileencoding of the packages to utf-8 (in vim) it still failed. I had to remove the accented e in @PonteIneptique 's name in them and then the problem went away.

I'm not sure if there is really an error in the encoding of that char in those files, or if it's some weird bug that only happens in my environment. Notably, there was absolutely no problem running the code directly, only when loaded via mod_wsgi in Apache. Note too that this error doesn't occur in the Perseids production environment, but that environment is using Apache 2.2 instead of 2.4, for whatever that is worth.

balmas added a commit that referenced this issue Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant