File encodings matter when writing Pixel Shaders
Posted by Igor Moochnick on 12/17/2008
Phewww… It took me some time to realize why my Pixel Shaders were not compiling with FXC. And this is a nasty one. Are you ready?.. IT DOES MATTER WHAT ENCODING YOUR FX FILE IS !!!!
Make sure to save your file with encoding: Western European (Windows) – Codepage 1252.
Check out this article for step-by-step instructions: http://blog.pixelingene.com/?p=224