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

iPhone mailerがISO-2022-JPのメールに半角カナを入れてくる問題への対応 #83

Merged
merged 1 commit into from
Dec 8, 2014

Conversation

mshibuya
Copy link
Contributor

@mshibuya mshibuya commented Dec 5, 2014

ISO-2022-JPでは本来半角カナは許されないと思うのですが、iPhone mailerは気にせず入れてくるようで受信時にEncoding::InvalidByteSequenceErrorが発生してしまいます。
対策として、文字列中にJIS X201半角カナエスケープシーケンスが含まれている場合はCP50220とみなすことによりエラーを回避し想定通りの変換が行われるようにしました。
どうぞよろしくお願いします。

@rust
Copy link
Member

rust commented Dec 8, 2014

ISO-2022-JPでは本来半角カナは許されないと思うのですが、iPhone mailerは気にせず入れてくるようで受信時にEncoding::InvalidByteSequenceErrorが発生してしまいます。

さすが Apple...

ありがとうございます! 👍

rust added a commit that referenced this pull request Dec 8, 2014
iPhone mailerがISO-2022-JPのメールに半角カナを入れてくる問題への対応
@rust rust merged commit 93ae77c into jpmobile:master Dec 8, 2014
@mshibuya
Copy link
Contributor Author

mshibuya commented Dec 8, 2014

マージありがとうございます!

@rust
Copy link
Member

rust commented Dec 8, 2014

masterへのmergeしかしていないんですが、必要なversionありますか

@rust
Copy link
Member

rust commented Dec 8, 2014

あればこちらでリリースしますー

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

Successfully merging this pull request may close these issues.

2 participants