Skip to content

Utf8 labels #4

@PhoenixFnX

Description

@PhoenixFnX

Hi,

in the function "testFitStringInTextBox" in driver.php
you tokenize the string using $tokens = preg_split( '/\s+/', $string );
when $string is in UTF 8 and using a 2 bytes character, the $tokens get corrupted and the labels can be turned to an empty string when the svg.php encodes() it using htmlspecialchars (returns empty string if char is wrong)

So the tokenization should take care of the encoding option !

Thank you for these components !
Nicolas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions