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

Encode the output to UTF-8 before writing to file #325

Merged
merged 1 commit into from
Jan 6, 2015

Commits on Jan 6, 2015

  1. Encode the output to UTF-8 before writing to file

    Having run pyScss with `--watch`, it died with:
    ```
      File "/usr/local/lib/python2.7/dist-packages/scss/tool.py", line 254, in compile
        dest_file.write(self.css.compile(scss_file=src_path))
    UnicodeEncodeError: 'ascii' codec can't encode character u'\uf0d7' in position 816: ordinal not in range(128)
    ```
    Encoding to UTF-8, assuming that's what everyone wants, before writing the file, solves it.
    kernc committed Jan 6, 2015
    Configuration menu
    Copy the full SHA
    fd66919 View commit details
    Browse the repository at this point in the history