You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Text File Encoding Detection Without Rewriting Data to Disk #4
Currently on non-Apple platforms (such as Linux), parsing text file data from Data in memory requires writing the data to a file on disk because the String API being used requires decoding from disk and has no Data overload.
It would be ideal to find an alternate API or solution for Linux to prevent having to write the data to disk to achieve this.
Note that this only applies to decoding in-memory Data. The CSV and TSVinit overloads that decode from a file URL bypass this procedure since the data already exists on disk.
With recent 0.5.x refactors, this is less relevant as the encoding auto-detection heuristic is able to detect most common text encodings without resorting to the String API that requires disk writes. Ultimately it may be possible to completely phase out that API.
Activity
orchetect commentedon Mar 29, 2026
With recent 0.5.x refactors, this is less relevant as the encoding auto-detection heuristic is able to detect most common text encodings without resorting to the String API that requires disk writes. Ultimately it may be possible to completely phase out that API.