NRCan-IETS-CE-O-HBC / HTAP

NRCan's Ruby scripts for batch analysis and optimization with HOT2000
http://www.nrcan.gc.ca/energy/efficiency/housing/home-improvements/17725
GNU Lesser General Public License v3.0
15 stars 7 forks source link

Proposed merge of patch for encoding problems with Browse.Rpt #117

Closed fergusoa closed 4 years ago

fergusoa commented 4 years ago

Some combinations of ruby and HOT2000 produced a perplexing error - "Could not parse Browse.RPT". These seem to be related to mismatches between encoding supported by various versions of Ruby, and non-UTF-8 characters that HOT2000 arbitrarily dumps into the Browse.Rpt file. These changes patch that error by forcing encoding to UTF8.