W3C home > Mailing lists > Public > www-svg@w3.org > September 2008

Re: Displaying chinese ideographs in svg page with Javascript and unicode

From: Fulio Pen <fuliopen@yahoo.com>
Date: Sun, 14 Sep 2008 17:37:57 -0700 (PDT)
To: fred.wang@free.fr
Cc: www-svg@w3.org
Message-ID: <172974.37194.qm@web51705.mail.re2.yahoo.com>
Hi, Fred:

Thanks for your message. I saved the attached svg file to your email, embedded it in an html file, and uploaded both to my web site. Their URLs are as follows:


Open these files online, you will see the html one is not rendered on all IE, FF and Opera browsers.  The svg page is not rendered on IE and FF, and poorly on Opera.  In short, the svg does not render Chinese characters independently online.  

Thanks again. 


----- Original Message ----
From: "fred.wang@free.fr" <fred.wang@free.fr>
To: Fulio Pen <fuliopen@yahoo.com>
Cc: www-svg@w3.org
Sent: Sunday, September 14, 2008 7:55:39 AM
Subject: Re: Displaying chinese ideographs in svg page with Javascript and unicode


I downloaded your svg page with the W3C's editor Amaya, saving it with the
charset "UTF-8". Then I edited the document and included a Chinese character
for "Moon". It is displayed well in Firefox. See attachment.

I'm not sure whether it is what you want. Javascript need to be use only if you
want the text to change dynamically.



> Hello, List Members:
> I need help on an svg page that I am working on.  First, please open the
> following svg page:
> http://www.pinyinology.com/test/tree2.svg
> I
> want to replace  the English words in above page with
> corresponding  ideographic Chinese characters. Directly entering 
> Chinese characters into the svg file with Chinese IME doesn't work,
> because the characters do not show on the IE and Firefox browsers.  So the
> characters must be displayed with Javascript code unicode, like what is done
> in the following page:
> http://www.pinyinology.com/test/characters.svg
> Four Chinese characters will displayed in the page.  Their unicode are listed
> in the following page:
> http://www.pinyinology.com/test/span3.html
> Please note that each character will appear at four different locations in
> the page.
>  Also, the English words should be removed  Only the Chinese character will
> appear in the page.
> Thanks for your expertise and help.
> fuliopen

Received on Monday, 15 September 2008 00:38:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:15 UTC