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

Web pages encoding

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

Moderator: daj

Post Reply
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Web pages encoding

Post by laulau »

Hi,
My web pages are encoded in "ANSI" with "charset=iso-8859-1" in header like Cumulus standard pages.
Some special pages need to be encoded in "utf8" to work properly, but this causes some accentuation problems! :oops:

http://meteo.laurentmey.fr/Viewdayfile/dayfile.php
http://meteo.laurentmey.fr/php/steelgauges.php

My links are in a included page (encoded in "ANSI") to facilitate updating.

What should i do to avoid these problems?

Thanks
Laurent

Image
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: Web pages encoding

Post by beteljuice »

Hmm .. the problem is Cumulus 'processes' pages as ANSII.

Taking the dayfile page as an example - the page is 'declared' as utf-8 and the php content is utf-8, and the browser thinks it's utf-8 (otherwise you wouldn't be able to see the wind direction arrows ;) ).
The accented chars you have put in your nav menu are NOT utf-8 !

No guarantees - try

http://unicode-table.com

<click> the character you want, then <click> copy to clipboard, and paste back into your template code.

I'm not sure what (If anything) Cumulus will do with it :?

Edit: BTW - I hadn't realised the table cells were 'transparent' with null data.
change this part of the stylesheet:

Code: Select all

#table_container table td,table th {
	background-color:  #FFF; /* white - stop 'empty' cells being transparent */
	width: 65px;
	text-align: right;
	padding: 2px 5px 2px 0px;
}
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Web pages encoding

Post by steve »

What I would like to do is to convert the web pages supplied with Cumulus to HTML5, encoded as UTF-8, and save all processed web files as UTF-8. But this would presumably break anyone's own web pages which are not UTF-8 encoded? Offering the option of UTF-8 is possible, but a lot more work.
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Web pages encoding

Post by laulau »

I put &#233 instead of "é" and &#232 for "è" and this did the trick :bash:

This was easy for a few words in my links but there are some more accentuated caracters in the prévision texts and in other strings.
If i want to convert all my web pages to utf8 i think i have to change a lot of "é" and "è" or "à" in Cumulus strings!
And i don't know how Cumulus will manage the parameters of the webtags.

Should i leave my pages as they are or is utf8 encoding needed ?
Laurent

Image
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: Web pages encoding

Post by beteljuice »

I put &#233 instead of "é"
I tried that 'on-the-fly' with the FireFox inspect element etc. and for some reason it didn't work, but the cut'n'paste did :?

Changing your SITE to UTF-8 is a minefield, as you have to ensure all your doc types, meta tags, etc. etc. don't conflict.
If things work I would leave well alone for another day :o
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Web pages encoding

Post by laulau »

If things work I would leave well alone for another day
It's a good idea for a sunday afternoon :lol:
Laurent

Image
Post Reply