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

[BUG] decodeMimeStr, encoding windows-1251 #447

Closed
disprog opened this issue Jan 28, 2020 · 1 comment
Closed

[BUG] decodeMimeStr, encoding windows-1251 #447

disprog opened this issue Jan 28, 2020 · 1 comment
Labels
needs investigation This will be tested / debugged or checked out.

Comments

@disprog
Copy link

disprog commented Jan 28, 2020

subject содержит заголовок
=?UTF-8?B?0KLQtdGB0YLQvtCy0LDRjyDQt9Cw0LTQsNGH0LA=?=
После вызова decodeMimeStr получается
Тестовая задачР
Хотя должна получится строка: "Тестовая задача"
Проблема в том, что $toCharset получается UTF-8 (вместо Windows-1251):

  $toCharset = isset($element->charset) && preg_match('/(UTF\-8)|(default)/i', $element->charset) ? 'UTF-8' : $toCharset;
@disprog disprog added the needs investigation This will be tested / debugged or checked out. label Jan 28, 2020
Sebbo94BY pushed a commit that referenced this issue Apr 18, 2020
@Sebbo94BY
Copy link
Collaborator

Should be fixed with the last commit (see above). This fix will be included with the next release. It's currently only available in the develop branch.

@Sebbo94BY Sebbo94BY mentioned this issue Apr 20, 2020
Sebbo94BY added a commit that referenced this issue Apr 22, 2020
- Dropped PHP 5.6 support, as it went end-of-life (EOL) on the 31st of December, 2018: https://www.php.net/eol.php
- Dropped PHP 7.0 support, as it went end-of-life (EOL) on the 10th of January, 2019: https://www.php.net/eol.php
- Dropped PHP 7.1 support, as it went end-of-life (EOL) on the 1st of December, 2019: https://www.php.net/eol.php
- #403, #447, #479: Improved MIME decoding
- #485: Fixed ENCBASE64 decoding
- Fixed all Travis CI issues
- Updated psalm baseline
- Satisfied php-cs-fixer
- Added phpcpd to detect duplicated code
- Added phpmnd to detect magic numbers
- PHPUnit: Added and improved / updated test cases
- PR #485: Added some test cases for base64 decoding
- Fully replaced `Mailbox::convertStringEncoding()` with `Mailbox::decodeMimeStr()`
- Improved `composer.json`
- Updated README with PHP version overview
- Updated requirements in README
- Updated badges in README
- Removed not yet working OAuth code
- This and all upcoming releases contain a Travis CI LIVE mailbox test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation This will be tested / debugged or checked out.
Projects
None yet
Development

No branches or pull requests

2 participants