Closed vincenzo closed 9 years ago
It looks like the file isn't being interpreted as UTF-8. If you change your script tag to read:
<script src="js/it_bcv_parser.js" charset="UTF-8"></script>
Does that fix it?
I'm of two minds about including raw UTF-8 characters in the Javascript files--on one hand, it saves bandwidth, but on the other, it can lead to inconsistencies like this. Minifying the file, as you note, solves the problem by always using \uxxxx escaped characters.
@openbibleinfo Yeah, good call. That does fix it. So it's either that, or I'll just minify the JS file I need to use. I am guessing you are not thinking to include minified versions of all JS files? ;)
Since the minified files are derived directly from the js files, I wasn't planning on providing them for all the languages, no. Sorry. :)
No worries ;)
Hi.
When I include any JS file other than
en_bcv_parser.min.js
(even with the non-minified English file), I get this error in the JS console:I am doing
(and similar with other languages).
PS: thanks for opensourcing this, it's really useful.