【问题标题】:Russian characters on svg text tag not showing correctlysvg 文本标签上的俄语字符未正确显示
【发布时间】:2017-12-08 08:33:08
【问题描述】:

我在网站上有 Svg 并且会有 俄语 文本 但是当我打开浏览器时,文本显示不正确。

这是我的代码

<g>
  <rect id="XMLID_2_" x="409.1" y="102.3" transform="matrix(0.7071 -0.7071 0.7071 0.7071 25.8097 371.5413)" class="cubes hex-init" data-title="backend" data-content="backend-desc" data-color="#333333" width="104.6" height="104.6"/>
  <image style="overflow:visible;" width="256" height="256" id="XMLID_18_" xlink:href="assets/img/time.png"  transform="matrix(0.1826 0 0 0.1826 440 110.7045)"></image>
  <text id="XMLID_22_" transform="matrix(1 0 0 1 425.0002 174.6665)" class="st1 st2">Собственный график</text>
</g>
  1. 结果是
Собственный график

【问题讨论】:

    标签: html svg character font-face


    【解决方案1】:

    您可以在 html 头中添加元字符集

     <meta charset="UTF-8">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多