projects
/
banana.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix wrt IE.. sucky browser
[banana.git]
/
banana
/
post.inc.php
diff --git
a/banana/post.inc.php
b/banana/post.inc.php
index
7f4e9cd
..
f9ca5cc
100644
(file)
--- a/
banana/post.inc.php
+++ b/
banana/post.inc.php
@@
-45,6
+45,8
@@
class BananaPost
if (preg_match('!charset=([^;]*)\s*(;|$)!', $this->headers['content-type'], $matches)) {
$this->body = iconv($matches[1], 'utf-8', $this->body);
+ } else {
+ $this->body = utf8_encode($this->body);
}
}