Skip to content

Text File Encoding Detection Without Rewriting Data to Disk #4

Open

Description

@orchetect

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 TSV init overloads that decode from a file URL bypass this procedure since the data already exists on disk.

Activity

  1. added
    enhancement
    good first issue
    on Mar 15, 2026
  2. orchetect commented on Mar 29, 2026

    @orchetect
    OwnerAuthor

    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.

  3. added
    linux
    on Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuelinux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions