-
Notifications
You must be signed in to change notification settings - Fork 159
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.init(data:encoding:)
/String.data(using:)
regression.
#1015
Comments
Should this one be part of this or is the current behavior considered the correct one? |
String.data(using: encoding)
regression.String.init(data:encoding:)
/String.data(using:)
regression.
Thank you. I added it. |
@parkera
IMHO, options are:
|
We need We can move more encoding conversions to be implemented in Swift over time. However, if importing the full |
I'm sorry, but I misworded due to my cultural background. ("lower" → "lift"?)
Is this some kind of "future direction"? |
Take a look at the technique we use in Calendar_Cache.swift for an example. When on Darwin (where this is all one module) or when on non-Darwin and a callback has been registered, we can allow the lower-level |
I didn't know such technique. I appreciate your instruction. I've been illuminated. |
This is an umbrella issue that is tracking regression of
String.init(data:encoding:)
/String.data(using:)
.Data
→String
String
→Data
String.data(using:)
does not support Shift-JIS. #925String.data(using: .iso2022JP)
unexpectedly returnsnil
on non-Darwin. #1014String.data(using: .japaneseEUC)
returnsnil
on non-Darwin. #1016The text was updated successfully, but these errors were encountered: