【问题标题】:SVG special characters in Adobe IllustratorAdobe Illustrator 中的 SVG 特殊字符
【发布时间】:2012-10-13 07:41:48
【问题描述】:

我创建了以下 svg 文件:

<?xml version="1.0" encoding="utf-8"?>
<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
 <g>
  <title>Layer 1</title>
  <text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="24" id="svg_1" y="138" x="79" stroke-width="0" stroke="#000000" fill="#000000">Sø</text>
 </g>
</svg>

但是当我尝试在 Adob​​e Illustrator 中打开它时,我收到一条错误消息,指出它是无效的 SVG 文件。

这是由于“ø”。

我一直在摸索,但我无法想出解决方案

【问题讨论】:

  • 您确定文件保存为 utf-8 编码吗?仅仅因为标题这么说并不意味着编辑器实际上正确保存了它......

标签: xml svg fonts adobe-illustrator


【解决方案1】:

您可以使用支持此字符的编码,例如

<?xml version="1.0" encoding="Windows-1252"?>

或者对字符进行编码。从this 判断,您将用&amp;#248; 替换问题信

【讨论】:

    猜你喜欢
    • 2019-04-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-06
    • 2016-08-02
    • 1970-01-01
    • 2013-05-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多