Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Bourbon with Chinese fonts fails?

Community Beginner ,
Jan 02, 2017 Jan 02, 2017

Copy link to clipboard

Copied

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";

@Import 'bourbon/bourbon';

@Import '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:

problem.png

Views

579
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 02, 2017 Jan 02, 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

Votes

Translate
Guru ,
Jan 02, 2017 Jan 02, 2017

Copy link to clipboard

Copied

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 02, 2017 Jan 02, 2017

Copy link to clipboard

Copied

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, the only real Dreamweaver alternative.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 02, 2017 Jan 02, 2017

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines