Skip to content

Support utf8 by default for saving strings. - #7230

Merged
ukmo-ccbunney merged 4 commits into
SciTools:mainfrom
pp-mo:chardata_no_encoding
Jul 29, 2026
Merged

Support utf8 by default for saving strings.#7230
ukmo-ccbunney merged 4 commits into
SciTools:mainfrom
pp-mo:chardata_no_encoding

Conversation

@pp-mo

@pp-mo pp-mo commented Jul 28, 2026

Copy link
Copy Markdown
Member

Closes #7195

See all the arguments there.

Ideally this would go direct into Iris 3.16, but I fear we just ran out of time.
If not in 3.16 we will need to revise this, make controllable (?via FUTURE?) for a backwards-incompatible change.

WIP: first let's see if any tests fail...

@pp-mo
pp-mo requested a review from stephenworsley July 28, 2026 17:24
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.34%. Comparing base (235dd46) to head (5d301e9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7230   +/-   ##
=======================================
  Coverage   90.34%   90.34%           
=======================================
  Files          92       92           
  Lines       25335    25336    +1     
  Branches     4731     4731           
=======================================
+ Hits        22889    22890    +1     
  Misses       1675     1675           
  Partials      771      771           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pp-mo
pp-mo marked this pull request as ready for review July 28, 2026 17:29
@ukmo-ccbunney ukmo-ccbunney self-assigned this Jul 29, 2026

@ukmo-ccbunney ukmo-ccbunney left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. 👍🏼
I've run some test on the command line and everything is behaving as expected.

It's nice to not have to specify an encoding for saving and have it "just work" by default. 👏🏼

LGTM!

@ukmo-ccbunney
ukmo-ccbunney merged commit 3b4089e into SciTools:main Jul 29, 2026
22 checks passed
@pp-mo
pp-mo deleted the chardata_no_encoding branch August 6, 2026 22:29
@scitools-ci scitools-ci Bot removed this from 🚴 Peloton Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow saving non-ascii strings to netCDF with no '_Encoding' attribute

2 participants