From 187cfa5946f3c49ed80853a9c6890f30f4be873a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 29 Jun 2016 13:19:29 -0500 Subject: Interpret labels as UTF-8 in testFitStringInTextBox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes labels not showing up when certain characters, e.g. "à", were used in those labels. Signed-off-by: Timothy Pearson --- src/interfaces/driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/driver.php b/src/interfaces/driver.php index 18512a4..34ca1de 100644 --- a/src/interfaces/driver.php +++ b/src/interfaces/driver.php @@ -503,7 +503,7 @@ abstract class ezcGraphDriver protected function testFitStringInTextBox( $string, ezcGraphCoordinate $position, $width, $height, $size ) { // Tokenize String - $tokens = preg_split( '/\s+/', $string ); + $tokens = preg_split( '/\s+/u', $string ); $initialHeight = $height; $lines = array( array() ); -- cgit v1.1