Repository navigation
fix: Handle non utf-8 characters in OME-XML - #141
Conversation
By using String::from_utf8_lossy. Changed to another sample OME-TIFF file, and increased prefetch bytes to more than 32kb to avoid hanging when parsing the StripOffsets tag.
|
Ok so to clarify the spec says that these characters should always be UTF8? And which spec are we talking about? TIFF or OME-TIFF? This tag type is named Alternatively we could store a |
OME-TIFF spec says so, see https://docs.openmicroscopy.org/ome-model/5.6.3/ome-tiff/specification.html
I think this type is something in the TIFF spec, but not 100% sure. Probably ok to just keep it as ASCII.
Yeah, I reckon using a String is better here, otherwise users will need to decode bytes to string... |
By using
String::from_utf8_lossy.Changes:
Increased prefetch bytes to more than 32kb as workaround to avoid hanging when parsing the StripOffsets tag (xref Tokio hangs when opening TIFF #89)Edit: Not needed anymore after feat: Exponential read-ahead cache #140.Fixes #101