javascript - Highchart 不显示 unicode 字符

标签 javascript jquery html highcharts

当标题或名称包含 unicode 字符时 就会这样显示。 我想展示法语。 /image/cwpES.png

{ 
       min: 0,
       max:3000,
       tickAmount: 6,
       tickInterval: 600,
      title: {
         text: 'Température (°C)',
         style: {
            color: '#7CB5EC',
            fontFamily: 'Trebuchet MS'
         }
      },
      labels: {
         format: '{value}',
         style: {
            color: Highcharts.getOptions().colors[0]
         }
      },
      opposite: true
   }

最佳答案

我解决了我的问题。我使用 notepad++ 重新编码该文件。默认 Eclipse 编码 UTF-8 无法正常工作。

关于javascript - Highchart 不显示 unicode 字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32583359/

相关文章:

javascript - 如何在 three.js 中创建 Shiny 的对象?

javascript - 将组件方法从回调绑定(bind)到子组件

javascript - jquery - 选中单选按钮时附加

javascript - PhoneGap(网络移动应用程序)——在页面之间传输数据

javascript - 保存选项卡选择

javascript - 收到错误 : Tried to merge an object, 而得到 [object Object]

javascript - jQuery-Mobile pagecontainerbeforechange 不会触发

javascript - 使用 jquery/JS/CSS 如何将单词 append 到句子中以便句子逐字向上推

html - 桌面友好的多个下拉列表,同时保持智能手机的默认样式

jquery - 如何删除 CSS :hover effect with jQuery?