Alex Dowad
b5ff87ca71
Fix mbstring support for CP1252 encoding
...
It's a bit surprising how much was broken here.
- Identify filter was utterly and completely wrong.
- Instead of handling invalid CP1252 bytes as specified by
`mb_substitute_character`, it would convert them to Unicode 0xFFFD
(generic replacement character).
- When converting ISO-8859-1 to CP1252, invalid ISO-8859-1 bytes would
be passed through silently.
- Unicode codepoints from 0x80-0x9F were converted to CP1252 bytes 0x80-0x9F,
which is wrong.
- Unicode codepoint 0xFFFD was converted to CP1252 0x9F, which is very wrong.
Also clean up some unneeded code, and make the conversion table consistent with
others by using zero as a 'invalid' marker, rather than 0xFFFD.
2020-10-30 22:13:27 +02:00
..
2020-10-21 17:06:48 +02:00
2020-10-16 10:56:33 +02:00
2020-10-07 14:58:43 +02:00
2020-10-26 11:55:29 +01:00
2020-09-01 16:35:56 +02:00
2020-10-14 19:11:58 +02:00
2020-10-26 11:06:10 +01:00
2020-10-22 14:50:52 +02:00
2020-10-26 13:15:03 +01:00
2020-10-02 11:55:46 +02:00
2020-10-02 11:56:16 +02:00
2020-10-30 15:49:48 +01:00
2020-10-26 16:54:30 +01:00
2020-09-29 11:04:09 +02:00
2020-10-23 16:56:23 +02:00
2020-10-22 15:07:01 +02:00
2020-09-30 23:01:56 +02:00
2020-10-15 10:17:55 +02:00
2020-10-30 09:54:48 +01:00
2020-10-09 15:25:23 +02:00
2020-10-23 20:48:52 +01:00
2020-10-16 10:56:33 +02:00
2020-10-24 15:36:05 +02:00
2020-10-15 11:48:47 +02:00
2020-09-03 15:07:03 +02:00
2020-10-30 22:13:27 +02:00
2020-10-29 16:41:09 +01:00
2020-10-29 16:42:00 +01:00
2020-10-16 10:56:33 +02:00
2020-10-29 13:10:32 +01:00
2020-10-30 22:07:41 +02:00
2020-10-20 10:52:50 +02:00
2020-10-30 17:29:33 +01:00
2020-10-22 11:20:02 +02:00
2020-10-28 12:18:26 +01:00
2020-10-12 13:00:41 +02:00
2020-10-12 13:00:41 +02:00
2020-10-29 14:18:22 +01:00
2020-10-12 13:00:41 +02:00
2020-10-12 13:00:41 +02:00
2020-10-13 12:32:08 +02:00
2020-10-12 18:09:08 +02:00
2020-10-30 17:29:33 +01:00
2020-10-14 16:58:07 +02:00
2020-10-06 09:49:40 +02:00
2020-10-22 14:56:00 +02:00
2020-10-30 17:29:33 +01:00
2020-10-30 17:23:18 +01:00
2020-10-23 16:55:11 +02:00
2020-09-30 21:07:25 +02:00
2020-09-18 14:28:32 +02:00
2020-09-18 14:28:32 +02:00
2020-10-08 17:10:52 +02:00
2020-10-23 14:26:34 +02:00
2020-10-10 14:45:20 +01:00
2020-10-13 10:41:43 +02:00
2020-10-26 09:26:18 +01:00
2020-10-06 23:02:18 +02:00
2020-10-30 17:29:33 +01:00
2020-10-01 23:08:20 +02:00
2020-10-01 23:09:31 +02:00
2020-10-01 23:09:56 +02:00
2020-10-22 16:05:57 +02:00
2020-09-29 16:11:08 +02:00
2020-10-09 10:43:35 +02:00
2020-10-08 10:28:50 +02:00
2020-10-16 10:56:33 +02:00
2020-10-08 10:28:50 +02:00
2020-10-30 15:49:48 +01:00
2020-10-26 11:40:06 +01:00
2020-10-16 10:56:33 +02:00
2020-07-06 21:13:34 +02:00