Jon et al
Some additional information. This is really strange. I used the modheader.js with the following in UTF-8 encoding.
//
// name=ModHeader
// dependencies=jQuery
// description=Modify head of summary tables.
// author=Jon Eskdale
// date=2016-04-13
// version=1.0
// url=http://sailwave.com
// email=jon@sailwave.com
// twitter=@eskdale
//
var sText = ‘Average¬speed’;
var sSelector = ‘.summarytable th’;
$(function () {
$(sSelector).filter(function() {
return $(this).text() === sText;
}).text(“Average speed”);
});
However in Sailwave when I select moderator I get in the ‘code’ window (Notice the additional ‘Â’):
var sText = ‘Average¬speed’;
var sSelector = ‘.summarytable th’;
$(function () {
$(sSelector).filter(function() {
return $(this).text() === sText;
}).text(“Average speed”);
});
And then the published result is “AverageŽspeed”, This appears to be a character set encoding (e.g., UTF-8, ANSI, etc.) issue.
My browser is Microsoft Edge Version 101.0.1210.53 (Official build) (64-bit). If I convert moderator.js to ANSI, I get even stranger results. What is the expected file encoding for the effects and what is the encoding of the resultant html file?
I searched in both the Program Files (x86) and my local Sailwave folders for “average” and go no hits other than “moderator.js”. Is there any other useful information that I can provide?
Tom