I think you were wrong to post your problem in this voting topic, but as you did, I am replying here.
BCJKiwi wrote: ↑Mon 18 May 2020 3:41 am
File is ANSI Windows(CR/LF)
As Mark Crossley has already told you, this is not the encoding that MX uses for NOAA reports when UTF-8 is not ticked. MX uses ISO-8859-1 encoding (see line 49 in
https://github.com/cumulusmx/CumulusMX/ ... Reports.cs, that is different to ANSI. Yes, on Windows it does use CR LF as terminator, because Windows inserts that (as Microsoft by design hoped its files would not to be read by other operating systems), it is not a question of MX coding differently because it is Windows. You can see the line-by-line code in
https://github.com/cumulusmx/CumulusMX/ ... MX/NOAA.cs.
It is very simple, as I explained before, I previously had a web page using ISO-8859-1 encoding to successfully display my NOAA reports when previously I had those in ISO-8859-1 encoding. In other words stick to same encoding for all components, I am sure that is what most people would do, keep it simple, and it works.
You however in your implementation seem determined to mix encodings
without apparently actually understanding the meaning of the technical terms you quote, so it is no wonder by introducing complexity you experience difficulty.
As I explained in detail before in your earlier UI topic your UI viewer uses UTF-8 encoding for the web page, but expects report to be ANSI encoding (which it can never be) and it then does 2 character replacements (replacing space and replacing degree symbol, both result in new degree symbols) that mess up the encoding. Sorry if that sounds harsh/blunt, but it is a true summary of your approach.
BCJKiwi wrote: ↑Mon 18 May 2020 3:41 am
For May, there are no daily entries
On my implementation in the admin interface, the May NOAA report:
*has entries for each day
*has all the correct symbols
When I use
my report viewer on my web server, the above is also true. As I said before, I have abandoned use, in your UI package, of the equivalent web page (because of the encoding mess you created).
BCJKiwi wrote: ↑Mon 18 May 2020 3:41 am
If I load April's report and re-generate that, it loses all the records.
Also the degree symbols do not display in the UI monthly report editor
On my implementation in the admin interface there is no problem with April report either:
*has entries for each day
*has all the correct symbols
When I use
my report viewer on my web server, the April report has all the lines, but although the degree symbol is there for temperature, the symbols introduced in 3.6.0 are not there as the April report has not been uploaded again since when it was generated by an earlier MX version (3.5.4). Simply uploading the local April file to my web server, gives me the correct symbols
without needing to click regenerate. So it is now okay on my web server too.
My February report generated by Cumulus 1 does have all days and all symbols correctly shown. The March report was affected by my transition from C1 to MX. It had the full symbols, but lost them when regenerated by MX 3.4.6. Simply uploading the local March file to my web server, gives me the correct symbols
without needing to click regenerate.
BCJKiwi wrote: ↑Mon 18 May 2020 3:41 am
No tick - Use UTF8 encoding
Tick - Auto save after daily reset
Tick - Auto FTP after auto save
My settings differ only in that I have UTF8 encoding ticked, to be consistent with encoding for all my web pages and therefore the encoding used by
my report viewer.
Just in case the MX admin interface did as you describe, I changed my settings to match yours, I regenerated the May report and again found for me all rows are generated correctly and
I conclude your problems in the admin interface are therefore not linked with how MX works, but specific to your implementation.