Hello!
Thank you for the library.
I don't no if it is bug or some additional settings needed.
For some reason strings which consist of UTf8 symbols are cut 2-4 times.
For example, $sect->writeText('€€€€') creates text '€' so 3 last chars are lost.
How it can be fixed? Thanks.
I discovered that if mbstring.func_overload in php.ini is set to 0 everything works correctly. So is it one of the library requirements?
Hello Pavel,
thanks for your investigation. mbstring function overloading is not a
requirement, so it is a bug.
Best regards,
Steffen
Am 16.09.2015 um 12:37 schrieb Pavel:
Related
Bugs: #44
Hello again,
I was answering to fast. mbstring.overload_func = 0 is the php default
and you should use it for multibyte aware php applications. PHPRtfLite
is aware of multibyte strings and handles them well. In parts of the
library originial php functions for example strlen() is used to find out
the number of bytes a string has. This will return the wrong result, if
mbstring.func_overload is activated. So it is not a bug, it is a library
requirement not to overload mbstring functions.
I hope, I could help you with my answer.
Best regards,
Steffen
Am 16.09.2015 um 20:51 schrieb Steffen Zeidler:
Related
Bugs: #44
Hello, Steffen!
Thank you for the help. mbstring.overload_func = 0 is a common value, but some CMS require mbstring functions overloading.
I'll keep in mind that mbstring.func_overload must be set to 0 for the lib.
Kind regards,
Pavel