When I call the iconv function in the iOS 17.1 beta version to convert from GBK encoding to GBK encoding, character conversion is abnormal. However, in the same scenario, it works fine in iOS 17. Iconv is used extensively in our project. Can you please tell me what changes have been made in the latest version?
ios17.1Beta Version iconv error
I have a similar wrong output, When converting half-width kana from CP932 in ios17.1.
Same issue when converting emojis here. Any news on that?
I decided to build iconv myself to resolve this issue. I've made it available in a usable form, so if you're still in trouble, try it out. https://github.com/sidepelican/xciconv
We have the same issue, @sidepelican what exactly did you change in the iconv to make it work? Do you have a diff? Thanks!
@bmanahilov
All my build steps are written in https://github.com/sidepelican/xciconv/blob/main/build.sh. Check it out.
It is built in library mode, so almost all of the symbols are prefixed with lib
. (e.g., iconv_open
-> libiconv_open
)
https://github.com/apple-oss-distributions/libiconv/tree/libiconv-64 Here is what I used to resolve this problem.
When converting from the character code CP932 to UTF-8, there was a problem with the presence of half-width kana, but this issue has been resolved in the iOS 17.4 beta simulator.