diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-14 12:37:03 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-14 12:37:03 +0000 |
commit | 0d82e48feeb23d9862e94652ad0d9ae6e1649b2e (patch) | |
tree | 9842b72b5c6b290ba20d912223a231b0807933ad /engine | |
parent | b0394cf6b2e731a47026ee3001209cefdee567d8 (diff) | |
download | elgg-0d82e48feeb23d9862e94652ad0d9ae6e1649b2e.tar.gz elgg-0d82e48feeb23d9862e94652ad0d9ae6e1649b2e.tar.bz2 |
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
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/opendd.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; |