Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

String.ini

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

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:

String.ini

Post by laulau »

Hi,
I have accented characters in string.ini, i've converted the file to UTF-8.
In dashboard forecast is ok now.
In internet index.htm it isn't but it's ok in gauges.htm !
Is there an issue or am i doing something wrong ?
CaptCMX.JPG
CaptCMX1.JPG
CaptCMX2.JPG
You do not have the required permissions to view the files attached to this post.
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: String.ini

Post by steve »

I'm not sure why it isn't working on the index.htm page, but the realtimegauges file uses <#forecastenc>, so the character gets 'web encoded' as &#244; which is why it works OK in the gauges ticker.
Steve
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: String.ini

Post by mcrossley »

Laurent, do you have a link to your MX pages?
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: String.ini

Post by mcrossley »

It's OK I found your MX site.

Did you save index.html as UTF-8 when you edited it?
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: String.ini

Post by laulau »

Laurent

Image
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: String.ini

Post by laulau »

mcrossley wrote:It's OK I found your MX site.

Did you save index.html as UTF-8 when you edited it?
Yes but it look's like the processed file is no longer ! :o
Laurent

Image
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: String.ini

Post by laulau »

It seems that all the standard files are not UTF-8 encoded after being processed !
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: String.ini

Post by steve »

Mine are - if I look at trends.htm in notepad++, it shows as UTF-8 w/o BOM. Some/all of the others show as ANSI in notepad++ but that's because mine don't have any 'special' characters in them so they look like ANSI. I'm not sure what it is about trends.htm that makes it detectable as UTF-8.

Note that there was a bug with extra files where the utf-8 setting was being saved.

Could you zip up your strings.ini and your amended indexT.htm file, and I'll take a look.
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: String.ini

Post by laulau »

Hi,
I also add the processed index.htm file, you can see that the accented characters are not 'well' encoded.
You do not have the required permissions to view the files attached to this post.
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: String.ini

Post by steve »

They're all UTF-8, so that isn't the problem. Perhaps I need to do something similar to what I did for the all-time records problem. I'll experiment...
Steve
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: String.ini

Post by steve »

I'm having real problems fixing this without breaking the encoding on other things. I think you will have to use <#forecastenc> instead of <#forecast>, for now at least.
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: String.ini

Post by laulau »

No problem.
I'm running CMX for beta testing purpose.
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: String.ini

Post by steve »

I have a solution now which just fixes the forecast without breaking anything else. But I think I now have to apply the same thing to some other web tags. At the moment I'm not sure which ones. It's very confusing. Perhaps just the ones from strings.ini...
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: String.ini

Post by laulau »

I've installed last CMX build (3014).
I'm not able to confirm
Accented characters in forecast strings don't display properly on web page - should be fixed in 3014
because no accented characters in forecast at the time i'm writing.
I noticed something else : my pressure trend tag "$presstrend = ""; "is empty but "$presstrendenglish = "Falling"" isn't!
(OK for the temptrendtext)
Laurent

Image
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: String.ini

Post by laulau »

This morning i can confirm that forecast with accented characters from string.ini is fixed.
Laurent

Image
Locked