fixed. OK, the issue here was that the JavaScript function btoa(string) does not work with UTF-8-encoded strings. The solution was to use string.getBytes("UTF-8") to get a proper byte array, and then use Jmol's own base64 encoder to turn that into base64.
On Sat, Sep 17, 2016 at 4:58 PM, Angel Herráez <angel.herr...@uah.es> wrote: > Well, guess what > > It does not work for me in your page, but it does after I change the > language to US English in the popup menu > > It only likes to save the English menu ;.) > > Forget it > > ------------------------------ > > On 17 Sep 2016 at 15:51, Robert Hanson wrote: > > write menu ? > > worked fine for me at *https://chemapps.stolaf.edu/jmol/jsmol/jsmol/htm* > <https://chemapps.stolaf.edu/jmol/jsmol/jsmol/htm> > > > > On Sat, Sep 17, 2016 at 10:29 AM, Angel Herráez < *angel.herr...@uah.es* > <angel.herr...@uah.es>> wrote: > Ok, thanks > > I have later been able to do it from Java applet - so it may be that > > ------------------------------ > > On 17 Sep 2016 at 9:53, Robert Hanson wrote: > > I don't think write menu was implemented in JSmol. Will take a look. > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Jmol-developers mailing list > *Jmol-developers@lists.sourceforge.net* > <Jmol-developers@lists.sourceforge.net> > *https://lists.sourceforge.net/lists/listinfo/jmol-developers* > <https://lists.sourceforge.net/lists/listinfo/jmol-developers> > > > -- > Robert M. Hanson > Larson-Anderson Professor of Chemistry > St. Olaf College > Northfield, MN > *http://www.stolaf.edu/people/hansonr* > <http://www.stolaf.edu/people/hansonr> > > > 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 > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Jmol-developers mailing list > Jmol-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-developers > > -- Robert M. Hanson Larson-Anderson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr 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
------------------------------------------------------------------------------
_______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers