{"action":"created","issue":{"url":"https://api.github.com/repos/ai/autoprefixer-rails/issues/31","labels_url":"https://api.github.com/repos/ai/autoprefixer-rails/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/ai/autoprefixer-rails/issues/31/comments","events_url":"https://api.github.com/repos/ai/autoprefixer-rails/issues/31/events","html_url":"https://github.com/ai/autoprefixer-rails/issues/31","id":42727455,"number":31,"title":"Encoding::Undefined Conversion Error","user":{"login":"mfurlend","id":1995161,"avatar_url":"https://avatars.githubusercontent.com/u/1995161?v=3","gravatar_id":"","url":"https://api.github.com/users/mfurlend","html_url":"https://github.com/mfurlend","followers_url":"https://api.github.com/users/mfurlend/followers","following_url":"https://api.github.com/users/mfurlend/following{/other_user}","gists_url":"https://api.github.com/users/mfurlend/gists{/gist_id}","starred_url":"https://api.github.com/users/mfurlend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfurlend/subscriptions","organizations_url":"https://api.github.com/users/mfurlend/orgs","repos_url":"https://api.github.com/users/mfurlend/repos","events_url":"https://api.github.com/users/mfurlend/events{/privacy}","received_events_url":"https://api.github.com/users/mfurlend/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-09-14T18:56:17Z","updated_at":"2015-06-08T15:59:03Z","closed_at":"2014-12-07T21:14:24Z","body":"I attempted to invoke autoprefixer through compass as instructed, but when it runs I get this error:\r\n```\r\ncmd.exe /D /C C:/Ruby193/bin/compass.bat compile C:\\E\\gitstore\\public\\sass\\model_explorer.scss\r\n    write styles/model_explorer.css\r\nEncoding::UndefinedConversionError on line [\"22\"] of C: \"\\x9D\" to UTF-8 in conversion from Windows-1252 to UTF-8\r\nRun with --trace to see the full backtrace\r\n\r\nProcess finished with exit code 1\r\n```\r\n\r\nHere is my config.rb file:\r\n```ruby\r\nrequire 'bootstrap-sass'\r\nrequire 'compass/import-once/activate'\r\nrequire 'autoprefixer-rails'\r\n# Require any additional compass plugins here.\r\n\r\n\r\n# Set this to the root of your project when deployed:\r\nhttp_path = \"/\"\r\ncss_dir = \"styles\"\r\nsass_dir = \"sass\"\r\nimages_dir = \"images\"\r\njavascripts_dir = \"js\"\r\n\r\n# You can select your preferred output style here (can be overridden via the command line):\r\n# output_style = :expanded or :nested or :compact or :compressed\r\n\r\n# To enable relative paths to assets via compass helper functions. Uncomment:\r\n# relative_assets = true\r\n\r\n# To disable debugging comments that display the original location of your selectors. Uncomment:\r\n# line_comments = false\r\n\r\npreferred_syntax = :scss\r\non_stylesheet_saved do |file|\r\n  css = File.read(file.gsub(/\\\\/,'/'))\r\n  File.open(file, 'w') do |io|\r\n        io << AutoprefixerRails.process(css, safe:true)\r\n  end\r\nend\r\n```\r\nI don't know if it makes a difference, but I am invoking compass through at PHPStorm File Watcher."},"comment":{"url":"https://api.github.com/repos/ai/autoprefixer-rails/issues/comments/110052832","html_url":"https://github.com/ai/autoprefixer-rails/issues/31#issuecomment-110052832","issue_url":"https://api.github.com/repos/ai/autoprefixer-rails/issues/31","id":110052832,"user":{"login":"henrahmagix","id":1429026,"avatar_url":"https://avatars.githubusercontent.com/u/1429026?v=3","gravatar_id":"","url":"https://api.github.com/users/henrahmagix","html_url":"https://github.com/henrahmagix","followers_url":"https://api.github.com/users/henrahmagix/followers","following_url":"https://api.github.com/users/henrahmagix/following{/other_user}","gists_url":"https://api.github.com/users/henrahmagix/gists{/gist_id}","starred_url":"https://api.github.com/users/henrahmagix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrahmagix/subscriptions","organizations_url":"https://api.github.com/users/henrahmagix/orgs","repos_url":"https://api.github.com/users/henrahmagix/repos","events_url":"https://api.github.com/users/henrahmagix/events{/privacy}","received_events_url":"https://api.github.com/users/henrahmagix/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T15:59:03Z","updated_at":"2015-06-08T15:59:03Z","body":"Oh I don't have a solution for this repo, I just thought I'd post my solution for the problem as it was caused by Git, since it's fairly common that the source of a project will have been committed Unix-style. Obviously not everyone uses Git, but if they do then the above will hopefully work."}}