Well, it seems to me if you say you are using UTF-8 and then you don't,
that's a serious problem. It's all in the JavaScript and how it is
translating the strings in your .js file. The problem is outside Jmol.
Nothing to do with Jmol.

So your real problem, I think, is that your text editor is not saving the
text in UTF-8.  You have to fix that first. Notepad, for instance, has a
UTF-8 save option. Then ó becomes <C3> <B3> in the file instead of <F3>.
that's almost certainly the problem.

2012/3/12 Angel Herráez <[email protected]>

> Thanks, Otis and Bob
>
> Otis, yes, the \u + unicode for inserting single characters works
> fine.
> But here I need to just type in Spanish texts into a script file and
> have them come out correct.  My testing suggests that Java reads this
> file always as ANSI / ISO Western even when the file is coded as
> UTF-8 / Unicode. It does not make any difference whether the page is
> coded in one or the other. (I'm working on WinXP, Java 1.6.0_31)
> Past experience with javascript files says that they are assumed to
> be in the same encoding as the html page. This being a JmolScript
> file seems to not apply the same.
>
> Bob, I've put simple test pages at:
> http://biomodel.uah.es/Jmol/UTF8/test-ISO.htm
> http://biomodel.uah.es/Jmol/UTF8/test-UTF.htm
>
>
>
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to