Skip to content

str should support a few other string en/decodings #1771

Closed
@killerswan

Description

@killerswan

I've been thinking a little bit about how best to include support for the various other string encodings that we'll need to avoid the pitfalls of things like native filesystem paths and to read more common text encodings. It seems like in addition to the UTF-8 and ASCII which we already handle, we'll likely want simple to and from methods for the following, perhaps under the umbrella of a string_encoding interface:

  • Latin-1
  • Windows-1252
  • whatever libuv on Windows needs... (16-bit anything-but-null wchar_t, like NTFS?)
  • UTF-16

These are likely to be only a small can of worms, so long as we don't make any plans to automatically recognize them or agonize about working with them internally...

What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions