Hi Angel,
For the problem compiling Jmol with the new language menu, I only modified
build.xml to tell the Java compiler that the source files were encoded in
UTF8 (otherwise, it was deciding alone what the encoding was).
I believe Java Strings are quite agnostic about the encoding.
It's only when you write them to files or other things that the encoding can
be a problem.
Some String methods allow you to specify what encoding is used to write or
read a String.
So you can force what encoding is used to write to the file.
I suggest using an encoding that allows a lot of languages.
UTF8 seems a good choice.
Nico
2010/12/18 Angel Herráez <angel.herr...@uah.es>
> (This is mostly for Jonathan bu I'm putting here for future reference and
> also if someone else
> has ideas. It follows from a report in jmol-users that pages generated from
> Export to Web
> display Chinese text worng in the widgets)
>
> Jonathan, my first impression:
>
> The problem is only in the part of the page that comes from the widgets.
>
> Widget texts like "Spin on/off" come to widgets.java from the GT system (so
> they will be
> translated correct) and get inserted into the generated html page by E2W.
>
> The page has a codepage attribute, but it is getting the wrong characters.
> So I think it must
> be the java code that has to impose say UTF8 encoding on whatever it is
> producing.
>
> This is something similar to the issue with languages in popup menu that
> Nico updated
> yesterday. Initially, the names were coming in wrong characters.
>
> I think that even if ISO is apparently working fine, we'd be safer shiftng
> to UTF8 for all the
> products of E2W. I am looking fot the code that Nico has used to impose a
> certain codepage
> on certain java files
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers