svg 文本标签上的俄语字符显示不正确
Russian characters on svg text tag not showing correctly
我在 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>
- 结果是
Собственный график
您可以在 html head
中添加元字符集
<meta charset="UTF-8">
我在 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>
- 结果是
Собственный график
您可以在 html head
中添加元字符集 <meta charset="UTF-8">