projects
/
banana.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a5e23c
)
no more encoding issues with banana. oh yeah!
author
x2000habouzit
<x2000habouzit>
Sun, 26 Sep 2004 15:53:39 +0000
(15:53 +0000)
committer
x2000habouzit
<x2000habouzit>
Sun, 26 Sep 2004 15:53:39 +0000
(15:53 +0000)
include/post.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/include/post.inc.php
b/include/post.inc.php
index
463ff93
..
b232f73
100644
(file)
--- a/
include/post.inc.php
+++ b/
include/post.inc.php
@@
-35,6
+35,9
@@
class Post {
(preg_match("/quoted-printable/",$this->headers->contentencoding))) {
$this->body = quoted_printable_decode($this->body);
}
+ if(preg_match('!charset=([^;]*);!', $this->headers->contenttype, $matches)) {
+ $this->body = iconv($matches[1], 'iso-8859-1', $this->body);
+ }
}
}