Dear users
I'd like to know if any on you has experience with displaying Unicode 
characters in Jmol 
echos. 
I have succesfully used single characters some times, using the \u notation. 
But what I need 
now is to enter from keyboard strings  that include accented letters in a 
script file and have 
them properly displayed inside Jmol.

Test 1:
I have an html file, encoded as iso-8859-1, and a JmolScript file, encoded also 
as "Western 
Europe" (the default in Windows, may be the same as ANSI but I'm not sure).
This works fine and the accented characters display correctly in the applet.

Test 2:
I wanted to switch to Unicode UTF-8 (as the files will be run from a Mac I 
thought this was a 
better option, since AFAIK Unicode is the default in MacOS).
So I changed the html file to use Unicode UTF-8 (also declared as such in the 
meta tag) and 
saved it as such. I converted and re-saved the script file as UTF-8 too 
(without BOM).
Now Jmol displays funny characters instead of the proper accented letters.

I was assuming that the applet would receive whatever text based on the coding 
of the file 
and the coding/charset declaration of the webpage.
I will appreciate any hints.
Thanks




------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to