Yeah, I was just checking that.
I downloaded JSmol.zip this morning and I am getting error in loading 
core.z.js
After checking the js console errors, I located many lines that have a strange 
invisible character at the beginning of line. I could select one (together with 
the next few letters) and do global search and replace in Notepad++ to cure 
the issue. 

On 21 Nov 2012 at 13:52, Robert Hanson wrote:
> thanks. This is a step I forget because it doesn't affect my browser. Those 
> are byte-order marks I 
> don't know how to prevent but I know how to remove.

Maybe you should produce files that are  UTF with BOM.
Right now, core.z.js is UTF without BOM according to Notepad++

And following a previous comment, we may need to define that in webpages 
--not sure, but it would be like inserting this:

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8" /> <!-- for the page -->
<script src="myscripts.js" charset="UTF-8"></script>  <!-- for the js files -->

that's HTML5 reccomendation. The old 4.1 syntax is more expressive:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript; 
charset=UTF-8">

reports say this syntax is also ok for HTML5, at least the page part. Not sure 
about for scripts.



------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to