I have a legacy compass over sass setup. I need to add some Chinese fonts. And when compass is compiling .scss to .css it does not encode correctly Chinese characters. e.g. for "微軟正黑體" I get "σ╛«Φ╗ƒµ¡úΘ╗æΘ½ö".
What I have already done: 1. Addded @charset "UTF-8" to the roof of scss. 2. Added Encoding.default_external = 'utf-8' and encoding = 'utf-8' to config.rb.
Did not help. Anybody had this problem before? Thank you,
Answer to accept
Usually when you copy-paste string to file that is non-utf-8
encoded it gets wrongly re-coded to source encoding.
So as you say - you copy utf8 string and paste it to ANSII encoded file, so utf8 is magically converted to ANSII by editor and non-Latin symbols gets ruined