Skip to main content
iamrobert2017
Participant
January 2, 2017
Answered

Bourbon with Chinese fonts fails?

  • January 2, 2017
  • 3 replies
  • 701 views

Hi,

My bourbon compiled scss file for dreamweaver cc 2017 contains the following:

$body-font-family: 'Gotham', 'Helvetica Neue', 'Helvetica', "PingFang TC", '微軟正黑體', "Microsoft JhengHei", "Arial Unicode MS", sans-serif;

However it renders the following error:

Error: Invalid CP950 character "\xE5"

  on line 71 of C:/z2016/UniServerZ/www/ml/scss/_settings.scss

  from line 6 of C:\z2016\UniServerZ\www\ml\scss\main.scss

when I remove the Chinese Characters it works.

I have tried putting the following @charset "utf-8"; at the top of my scss file (+ @charset "UTF-8";) however this makes no difference:

@charset "utf-8";

@1552174 'bourbon/bourbon';

@1552174 'settings';

I have read here:
Invalid US-ASCII character "\xE2" · Issue #270 · csswizardry/inuit.css · GitHub

config.rb: Encoding.default_external = "utf-8"

However - which dreamweaver config.rb file should I edit - as that are many:

    This topic has been closed for replies.
    Correct answer BenPleysier

    The compiler should have to look at only one config.rb file which is placed in the root directory of your site.

    At the top of the config.rb file you could try to put

    Encoding.default_external = "utf-8"

    If that fails, try using Prepros. If you don't get the error then there is a problem with Dreamweaver and it should be reported as per

    3 replies

    iamrobert2017
    Participant
    January 3, 2017

    Hi Ben + Rob,

    Thanks for the advice.

    If I switch to Compass then that gives me a config.rb file that I can add the UTF-8 in and its working.

    However - I don't see that configuration option with bourbon. It doesn't create a config.rb file.

    If I try tcreating a config.rb file and using bourbon it seems to make no difference:

    https://gist.github.com/bcinarli/5618295

    - so I'll submit a feature/bug request.

    Thanks,

    Robert

    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    January 2, 2017

    The compiler should have to look at only one config.rb file which is placed in the root directory of your site.

    At the top of the config.rb file you could try to put

    Encoding.default_external = "utf-8"

    If that fails, try using Prepros. If you don't get the error then there is a problem with Dreamweaver and it should be reported as per

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Rob Hecker2
    Legend
    January 2, 2017

    Just want to let you know that your issues has been viewed by I don't have a solution.

    I wonder if stackoverflow.com would be a good place for you to post this issue.