Conversation
|
That would remove that feature completely, which is not desired. I can't find much information about this online, do you have any source for the reason of this issue? |
|
You mean converting |
|
Maybe use mbstring instead of iconv here? seems to work 🤔 |
|
If you don't want require mbstring directly, we can use https://packagist.org/packages/symfony/polyfill-mbstring |
|
Would mbstring introduce a new dependency or is that built into PHP by now? |
|
mbstring is a php extension by php itself, but not installed by default. When it's not installed, we can use the polyfill which is kinda the same but without having the need to install it |
|
I'd like to hear some input from some other people on this topic, before we continue. |
Not installed by default on Debian for example ? |
| private static function append8BitBytes(string $content, BitArray $bits, string $encoding) : void | ||
| private static function append8BitBytes(string $bytes, BitArray $bits) : void | ||
| { | ||
| $bytes = @iconv('utf-8', $encoding, $content); |
There was a problem hiding this comment.
this could be done only if mbstring is not present ?
$encoding is hard-code to
ISO-8859-1converting utf-8 to
ISO-8859-1throws a warning.https://3v4l.org/veXqX
on newer systems even a exception: