Skip to content

fix: read JCAMP files with UTF‑8 to preserve unit symbols#10

Merged
PiTrem merged 1 commit intoRefactor-parse_xy_xy-standardize-output-3D-arraysfrom
fix/nmrglue-jcamp-utf8
Aug 19, 2025
Merged

fix: read JCAMP files with UTF‑8 to preserve unit symbols#10
PiTrem merged 1 commit intoRefactor-parse_xy_xy-standardize-output-3D-arraysfrom
fix/nmrglue-jcamp-utf8

Conversation

@Nicolass67
Copy link

Change

Open JCAMP files in UTF-8 format using jcampdx.readDrawDic.

Why

Some JCAMP headers contain Unicode characters (e.g. ³) that were previously not displayed correctly.

For example, with this JCAMP line:

YUNITS=cm³*K

Chemspectra previously produced:
Image

After the fix:
Image

Testing

  • Load JCAMP files containing Unicode unit labels (XUNITS/YUNITS).
  • Verify that no replacement boxes or missing characters appear.
  • Confirm that all Unicode characters (e.g. ³) are displayed correctly in generated images.

@PiTrem PiTrem changed the title Fix: read JCAMP files with UTF‑8 to preserve unit symbols fix: read JCAMP files with UTF‑8 to preserve unit symbols Aug 19, 2025
@PiTrem PiTrem merged commit 84ff75d into Refactor-parse_xy_xy-standardize-output-3D-arrays Aug 19, 2025
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.

2 participants