PDA

View Full Version : Script to display MS Word Symbols



vanbao
12-23-2006, 03:28 AM
Hi,

I am trying to find a script that will allow me to copy a MS word document that contains MS symbols and paste it on a webpage and be viewable. For some reasons, when I did that, the symbols will show up in IE but when I view them using Firefox, the symbols look like Chinese.

Is there script of anything I can do to make the symbols viewable in any brower.

Thank you so much in advance.

mwinter
12-24-2006, 12:03 AM
I am trying to find a script that will allow me to copy a MS word document that contains MS symbols and paste it on a webpage and be viewable. For some reasons, when I did that, the symbols will show up in IE but when I view them using Firefox, the symbols look like Chinese.

This is probably an encoding issue: the data copied from the clipboard requires a particular character encoding scheme that the HTML document doesn't use.

Can you please post a link to a simple example that demonstrates the problem, preferably on the same server as this page of yours. It'll be easier to see exactly what's happening, as the cause may vary depending on what Word version is in use. Don't post code to the forum: the behaviour of the server is important.

Mike


This should probably be moved to the HTML forum.

djr33
12-24-2006, 03:03 AM
Also, note that some characters like shaped quotation marks (facing in or out toward the text on both ends) don't exist in the standard character set, so you'll need to do something special for them to work. I don't know much more than this, though, sorry.

mwinter
12-24-2006, 08:11 PM
Also, note that some characters like shaped quotation marks (facing in or out toward the text on both ends) don't exist in the standard character set, so you'll need to do something special for them to work.

The only standard character set in HTML is ISO/IEC 10646, which is essentially Unicode. A document may encoded using a particular encoding scheme, but the document character set is always the same.

There's an old, but thorough thread on Usenet that discusses this, and provides links to a few key documents. It's from 2004; the subject was Character set (http://groups.google.co.uk/group/comp.infosystems.www.authoring.html/browse_thread/thread/2f90021dfdfc07a5/db79bed245344112?&hl=en#db79bed245344112).

Mike

qeorge
12-26-2006, 09:20 PM
Which symbols specifically? Some chars have special means to output them in html, such as and , bullets and even the per mile sign: .

Not sure if those are ones you need, but this doc (http://www.cs.tut.fi/~jkorpela/www/windows-chars.html) might help