开发者

SVG graphics in Chinese/Japanese don't show up properly in IE8

I was testing an SVG graphic by opening it in IE8 with the Adobe SVG Viewer Plug-in.

The current issue is, all translated SVG graphics with Western Languages(French, Italian, German..) display properly in IE8, only except for the East-Asia Languages(Chinese, Japanese), the characters got shown as boxes.

Sin开发者_StackOverflow社区ce Chrome or Firefox can handle this well, but my client insist on using IE8 to test, could any one suggest a workaround please? Shall I get the client to install a language pack or something to configure the SVG Viewer?

Thanks.


Ok first off, are you taking an English SVG and using PHP to substitute in the translations, or are you dealing with a different SVG file for each language with the words already translated? Is the opening XML tag defined as utf8 encoding? And does the final output have to be SVG or could you take an svg and render a png/jpeg?

Our company did some Chinese translations of some pages, and I've found to make sure they displayed properly, I've had to make sure to declare utf8 charset in the page head and write characters as their unicode values (like \u4EA7\u54C1 for the 2 characters that represent "products").

The other suggestion I'd have is to find some Asian Language SVG files on the web that display correct in IE and open them in a text editor to examine how they properly handled the characters. I've used PHP to replace colors on SVG maps but never substituted non-latin characters... please post more info or a follow up if you find the answer elsewhere

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜