Conversation
new line symbol - bug fix
This library did not work correctly with multibyte characters. I made the appropriate correct operation with multibyte text. Before PHP 7.2.0, you need to use the utf8_ord () alternative function. If you have PHP version 7.2.0+, you can limit the work to the mb_ord () function. I also attach a font to check the work.
|
please explain the purpose of this PR I see many things :
|
|
Hello. Text from the documentation: " However, note that this function is not aware of any string encoding, and in particular will never identify a Unicode code point in a multi-byte encoding such as UTF-8 or UTF-16." http://php.net/manual/en/function.ord.php Currently in PHP Does not have a valid function. Therefore, I wrote the function function utf8_ord for proper operation. The problem has been fixed. I also attached a free font that contains Cyrillic characters. Script works can be checked. Sorry for changing indents. Apparently my code editor did this automatically :( |
|
@EzikMarconi do you still want to merge this? Otherwise, this will be closed. |
new line symbol - bug fix