Aleksander Machniak
f74bc3fd80
Fix bug where invalid non-unicode characters in JSON output could make the UI unresponsive ( #7955 )
2021-03-27 09:19:18 +01:00
Aleksander Machniak
12562a7b0e
Remove redundant code from rcube_charset::clean()
2021-03-22 08:36:19 +01:00
Aleksander Machniak
d258f845ab
Fix PHP8 Fatal error: Uncaught ValueError: mb_convert_encoding() ( #7850 )
...
Also, bring back iconv() fallback, it supports much more charsets than mbstring.
2021-01-30 15:51:23 +01:00
Aleksander Machniak
37d75d96a3
Short array syntax, CS fixes
2020-11-27 19:51:33 +01:00
Aleksander Machniak
30610e867e
Merge branch 'fix_encode' of https://github.com/shirosaki/roundcubemail into shirosaki-fix_encode
...
Refactor the new code
2020-06-13 12:53:31 +02:00
Aleksander Machniak
35c29be9b2
Remove use of ext-iconv
2020-05-03 18:33:20 +02:00
Aleksander Machniak
47d9ed6d0c
Add support for PHPUnit 6 and 7 ( #6870 )
...
Fixes composer dependencies: Package phpunit/phpunit-mock-objects is abandoned
We cannot support v8 yet because of errors like:
Declaration of MailFunc::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void
It would require dropping PHP < 7.1 support.
2019-12-28 09:37:45 +01:00
Hiroshi Shirosaki
a335102e47
Fix email address name encoding with ISO-2022-JP
...
Convert to UTF-8 to split addresses correctly.
Base64 encode ISO-2022-JP name.
Add a unit test.
2019-12-03 17:35:12 +09:00
Hiroshi Shirosaki
869d1d1eaf
Fix ISO-2022-JP-MS encoding convert
...
ISO-2022-JP-MS characters are removed by iconv on sending mail.
Use mbstring functions on sending.
Add a unit test.
2019-12-03 17:25:11 +09:00
Shin Kojima
0b385dc946
Skip iconv for problematic ISO-2022-JP strings ( #5668 )
...
We sometimes get broken character encodings such as:
Subject: =?iso-2022-jp?B?GyRCLWo7M3l1OSk2SBsoQgo=?=
This actually is not a strict ISO-2022-JP string, but a CP50220 string
that is a variant of ISO-2022-JP with extended characters proposed by
Microsoft. Iconv can not handle these encodings well.
2017-03-06 09:22:55 +01:00
Thomas Bruederli
7eefdc8149
Adapt charset cleanup tests to pass with different versions of iconv propucing slightyl different output
2015-06-01 13:43:54 +02:00
Thomas Bruederli
0bfc862283
Specify test groups for inclusion/exclusion
2015-05-19 18:53:50 +02:00
Aleksander Machniak
f7565da34b
Add some more tests for rcube_charset::clean()
2015-05-05 16:01:45 +02:00
Aleksander Machniak
a5b8ef99d4
Improve charset detection by prioritizing charset according to user language ( #1485669 )
2013-01-06 13:10:50 +01:00
Aleksander Machniak
b2e5178b10
Added tests for rcube_charset class
2012-09-13 11:34:22 +02:00
Aleksander Machniak
5f8adabb62
Add simple (constructor) tests for Framework classes
2012-08-27 09:28:16 +02:00