Skip to content

String.data(using:) does not support Shift-JIS. #925

Closed as duplicate of#1015
Closed as duplicate of#1015
@omochi

Description

@omochi

String.data(using:) does not support Shift-JIS as a conversion target. This was supported in the macOS version and swift-corelibs-foundation, so there is a loss of compatibility.

Shift-JIS is a Japanese character encoding, commonly used in the IT business in Japan. Due to various long-standing issues with Windows and business practices, the transition to Unicode has not progressed as much.

We are working with server-side Swift, and we rely on this conversion to Shift-JIS, which is causing us problems.

In fact, we are considering submitting a patch, but there’s a complication.
String.data is defined in FoundationEssentials, not in FoundationInternationalization, so ICU cannot be used.
How should we go about fixing this?

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