Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

w3c html 5 encoding

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

w3c html 5 encoding

Post by n9mfk »

Hi All,
I have w3c html 5 question

if i use utf-8

i get

Code: Select all

 M�t�o du Qu�bec
if i use iso-8859-1

Code: Select all

 Météo du Québec 
that good but then i get this error
from w3c Using windows-1252 instead of the declared encoding iso-8859-1.
what wood the fix be ?
Beau
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w3c html 5 encoding

Post by mcrossley »

If you have both declared the file encoding to be utf-8 and 'actually' encoded the file to utf-8 then you should see no corruption. It looks like you missed one or the other. Same for 8859-1, you have possibly declared the file 8859-1, but left the physical encoding as the default Windows 1252.
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: w3c html 5 encoding

Post by n9mfk »

hi Mark,
the file are ansi i tried iso-8859-1 but i still get Using windows-1252 instead of the declared encoding iso-8859-1.
Beau
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w3c html 5 encoding

Post by mcrossley »

Yes but you have to save the file in the same format as you are declaring within the file - no magic happens to perform the conversion for you.
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: w3c html 5 encoding

Post by n9mfk »

hi Mark,

the file are saved in iso-8859-1 but i still get Using windows-1252 instead of the declared encoding iso-8859-1.
Beau
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: w3c html 5 encoding

Post by beteljuice »

BTW - Most sites based on that template that I have visited display "the alternative character" or gibberish.

Presumeable because it has been encoded / saved in one standard, then edited / saved in another.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w3c html 5 encoding

Post by mcrossley »

hi beau, attach the file here so we can take a look
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: w3c html 5 encoding

Post by n9mfk »

Hi Mak Here are the files
the file im try to fix is the gauges-ss.php
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w3c html 5 encoding

Post by mcrossley »

beau, they were all encoded as Windows- 1252. I have changed the gauge-ss.php to utf-8 without a BOM, but I have had to add some extended characters to 'fix' the encoding.
You do not have the required permissions to view the files attached to this post.
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

Re: w3c html 5 encoding

Post by n9mfk »

Thanks Mark,
What Software did you use ?
thanks Beau
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: w3c html 5 encoding

Post by mcrossley »

Notepad++ though I normally use Komodo Edit for code now as it syntax checks as you type and is function/object/parameter aware as well.

edit: and the regex search and replace works, unlike Notepad++ where it is very restricted.
Post Reply