Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
omochi opened this issue Sep 19, 2024 · 0 comments
Open

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

omochi opened this issue Sep 19, 2024 · 0 comments

Comments

@omochi
Copy link

omochi commented Sep 19, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant