|
|
|
Re: Problems charset [message #163227 is a reply to message #163225] |
Mon, 11 October 2010 08:21 |
INVY
Messages: 33 Registered: November 2009
Karma: 0
|
Member |
|
|
200 News.GigaNews.Com
AUTHINFO USER ****
381 more authentication required
AUTHINFO PASS *******
281 News.GigaNews.Com
Group free.it.storia.medioevo
211 5489 1059 6547 free.it.storia.medioevo
ARTICLE 1059
220 1059 <y0GLa(dot)131176$Ny5(dot)3721365(at)twister2(dot)libero(dot)it>
Path: news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!bor
der1.nntp.aus1.giganews.com!nntp.giganews.com!news-out.tin.it!news-in.tin.it!nnt
p.infostrada.it!twister2.libero.it.POSTED!not-for-mail
From: "Vlad[]" <joe_falchettoTOGLI(at)bigfoot(dot)com>
Newsgroups: free.it.storia.medioevo
References: <aFsAa(dot)34484$lK4(dot)1063136(at)twister1(dot)libero(dot)it> <Xns9387CD33758F2cguasc
obiella(at)195(dot)31(dot)190(dot)132> <dRsAa(dot)34416$Ny5(dot)1078349(at)twister2(dot)libero(dot)it> <Xns9387CEE
1C997Bcguascobiella(at)195(dot)31(dot)190(dot)131> <5%sAa(dot)34560$lK4(dot)1064569(at)twister1(dot)libero(dot)it>
Subject: Re: ? ? ?
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <y0GLa(dot)131176$Ny5(dot)3721365(at)twister2(dot)libero(dot)it>
Date: Sun, 29 Jun 2003 18:14:54 GMT
NNTP-Posting-Host: 151.24.144.251
X-Complaints-To: abuse(at)libero(dot)it
X-Trace: twister2.libero.it 1056910494 151.24.144.251 (Sun, 29 Jun 2003 20:14:54
MET DST)
NNTP-Posting-Date: Sun, 29 Jun 2003 20:14:54 MET DST
Organization: [Infostrada]
Xref: intern1.nntp.aus1.giganews.com free.it.storia.medioevo:1059
Io sono un moderatore di un ng culturale della gerarchia it.* e ti posso
assicurare che nessuno si Þ mai lamentato di una eventuale nostra censura
(siamo 4 comoderatori): basta seguire le regole del manifesto (votato da
tutti gli utenti all'atto della formazioen del ng moderato) e non insultare
nessuno. Per quanto riguarda spam, troll e altre "simpatiche" cose del
genere, purtroppo esso compare in modo massiccio nei ng non moderati, e
l'appello all'abuse dei provider non dÓ quasi mai esito, tanto che per lungo
tempo la gerarchia it.* Þ stata preclusa agli utenti TIM, proprio perchÚ
moltisimi spammer impostavano da quel provider, il cui abuse non dava alcun
segno di vita...
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Problems charset [message #164488 is a reply to message #164444] |
Thu, 10 February 2011 02:45 |
rover_scan
Messages: 31 Registered: January 2010
Karma: 0
|
Member |
|
|
I partially solved the problem.
The file scripts_common.inc
if (function_exists('iconv_mime_decode')) {
return iconv_mime_decode(trim($val), 2);
to
if (function_exists('iconv_mime_decode')) {
return iconv_mime_decode(trim($val), 2, $GLOBALS['CHARSET']);
In file mime_decode.inc
function fetch_useful_headers() {
include_once "detect_cyr_charset.php"; // include detect charset script (in attachment)
// if script return charset ISO - nothing encoding
if ((detect_cyr_charset($this->headers['subject'])=="i")) {
$this->subject = htmlspecialchars(trim($this->headers['subject']));
}
elseif((detect_cyr_charset($this->headers['subject'])=="m")) // if charset MAC - i dont know
{ $this->subject = "Decode subject faild :(";
}
else
{ $this->subject = decode_string((htmlspecialchars(trim($this->headers['subject']))), $this->headers['content-transfer-encoding'], $this->headers['__other_hdr__']['content-type']['charset']);
}
I do not quite understand how this "Hindu Code" works. But it works!
About 80% "$ this-> headers ['subject']" is decoded normally.
There is a way to make it better?
[Updated on: Thu, 10 February 2011 03:15] Report message to a moderator
|
|
|
|
|
|