diff --git a/app/SearchDisplace/Output/HtmlOutput.php b/app/SearchDisplace/Output/HtmlOutput.php
index 6e08c04..c25b4f2 100644
--- a/app/SearchDisplace/Output/HtmlOutput.php
+++ b/app/SearchDisplace/Output/HtmlOutput.php
@@ -46,7 +46,7 @@ class HtmlOutput {
}
if(isset($element->paragraph)) {
- $this->additions[$element->paragraph][] = strlen($html) - strlen($element->content) - strlen("$element->tag>") - $diff;
+ $this->additions[$element->paragraph][] = strlen(utf8_decode($html)) - strlen(utf8_decode($element->content)) - strlen("$element->tag>") - $diff;
}
}