From 0d82e48feeb23d9862e94652ad0d9ae6e1649b2e Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 14 Jul 2008 12:37:03 +0000 Subject: Refs #139: Using UTF-8 encoding as a speculative fix. Test and confirm. git-svn-id: https://code.elgg.org/elgg/trunk@1415 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/opendd.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/opendd.php') diff --git a/engine/lib/opendd.php b/engine/lib/opendd.php index 5093cdee1..7ebd1445b 100644 --- a/engine/lib/opendd.php +++ b/engine/lib/opendd.php @@ -209,7 +209,7 @@ foreach ($this->attributes as $k => $v) $attr .= ($v!="") ? "$k=\"$v\" " : ""; - $body = htmlentities($this->getBody()); + $body = htmlentities($this->getBody(), NULL, 'UTF-8'); $tag = $this->getTagName(); $end = "/>"; @@ -310,7 +310,7 @@ $odd->setAttribute($k,$v); // Body - $odd->setBody(html_entity_decode($element->content)); + $odd->setBody(html_entity_decode($element->content, NULL, 'UTF-8')); } return $odd; -- cgit v1.2.3