diff --git a/src/FontLib/Glyph/Outline.php b/src/FontLib/Glyph/Outline.php index 330db09..f2b15d3 100644 --- a/src/FontLib/Glyph/Outline.php +++ b/src/FontLib/Glyph/Outline.php @@ -96,7 +96,7 @@ function parseData() { function encode() { $font = $this->getFont(); - return $font->write($this->raw, strlen($this->raw)); + return $font->write($this->raw, mb_strlen($this->raw, '8bit')); } function getSVGContours() {