I then basically copy and pasted the gauges-ss-basic.htm file in a wxnewpage.php. I had to make the gauges smaller but notice the temp and dew point gauges. the numbers are off and the gauges have an “A” in front of the
Hi,
that “A” is caused by encoding problems. You probably copied the code from HTML that used different encoding than you have on your site. If you use Notepad++ there is a command to convert encoding so make sure that the script code uses the same as your html.
Thanks, I’ll check it out!
I downloaded Notepad++ and couldn’t see an ISO-8859-1 for conversion. It said my template and gauges-ss-basic-.htm are both UTF-8. Why would it affect the “temperature” gauges?
jim
You have to ensure the files have the same encoding as the web server is telling the browser otherwise you get these mismatches. If you convert the gauges.js file to ISO-8859-1 in decent editor, it should be OK. Some editors make a hash of it and add those ‘spurious’ characters into the source file, if that happens you have to search for the degree character and change it manually.
require_once("common.php");
############################################################################
$useHTML5 = true; // force this page to use HTML5 instead of XHTML 1.0-Transitional
$useUTF8 = true; // force this page to convert language files to UTF8 for display
#
$TITLE = langtransstr($SITE['organ']) . " - " .langtransstr('Current Weather Gauges');
and the page will display using HTML5 and UTF8 for the gauges