premailer / css_parser

Ruby CSS Parser
Other
279 stars 110 forks source link

Force UTF-8 encoding; do not strip out UTF-8 chars. #106

Closed johnnyshields closed 4 years ago

johnnyshields commented 4 years ago

The line changed was causing UTF-8 chars to be stripped out in the CSS parsing. UTF-8 chars are needed for 'font-family' of Asian fonts. Not sure why binary encoding was used here previously.

font-family: "Helvetica Neue","Microsoft YaHei UI","Microsoft YaHei New","Microsoft YaHei","微软雅黑","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji",sans-serif,system-ui;
grosser commented 4 years ago

1.7.1

johnnyshields commented 4 years ago

Awesome, thanks!!