FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » i have some trobles// Need help
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
i have some trobles// Need help [message #161519] Mon, 04 January 2010 06:20 Go to next message
rover_scan is currently offline  rover_scan   Russian Federation
Messages: 31
Registered: January 2010
Karma: 0
Member

The problem with the encoding message NNTP. Russian server. Reports published in various programs, in accordance with different encoding. I could not fix. Help please. Examples


Or take another example

Here is the first and last post are displayed properly, the average diamond-shaped with questions.
How to solve the problem?

And how to save messages in the SQL? They are now in a folder messages are stored.

Sorry for the English, used translate.google.ru
Re: i have some trobles// Need help [message #161522 is a reply to message #161519] Mon, 04 January 2010 14:24 Go to previous messageGo to next message
rover_scan is currently offline  rover_scan   Russian Federation
Messages: 31
Registered: January 2010
Karma: 0
Member

sochiconfa.ru/index.php/t/1208/49dda5ecccd1f86a03e8eaba0dc4e8d2/

help please/// Sad Confused

[Updated on: Mon, 04 January 2010 14:30]

Report message to a moderator

Re: i have some trobles// Need help [message #161526 is a reply to message #161519] Mon, 04 January 2010 15:32 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
rover_scan het op Mon, 04 January 2010 08:20 geskryf:
The problem with the encoding message NNTP. Russian server. Reports published in various programs, in accordance with different encoding. I could not fix. Help please.


Can you send me the group name, server and message number to test myself?

rover_scan het op Mon, 04 January 2010 08:20 geskryf:
And how to save messages in the SQL? They are now in a folder messages are stored.


See ACP -> Global Settings -> Use Database for message storage.
Re: i have some trobles// Need help [message #161527 is a reply to message #161526] Mon, 04 January 2010 16:46 Go to previous messageGo to next message
rover_scan is currently offline  rover_scan   Russian Federation
Messages: 31
Registered: January 2010
Karma: 0
Member

naudefj писал(а) Mon, 04 January 2010 10:32
rover_scan het op Mon, 04 January 2010 08:20 geskryf:
The problem with the encoding message NNTP. Russian server. Reports published in various programs, in accordance with different encoding. I could not fix. Help please.


Can you send me the group name, server and message number to test myself?

rover_scan het op Mon, 04 January 2010 08:20 geskryf:
And how to save messages in the SQL? They are now in a folder messages are stored.


See ACP -> Global Settings -> Use Database for message storage.


server - news.sochitel.ru
groupname - sochi.test
need autorization

login [deleted]
pass [deleted]

logs show that the number of the message "Importing sochi.test message 31871"


"Use Database for message storage." already found himself. anyway thanks Razz . But! after installing the switch in the "yes" to all new messages are not in UTF-8 were saved with a blank header and body in SQL. message 31871 - as an example. When this option is disabled, nothing changes.

[Updated on: Tue, 05 January 2010 08:15]

Report message to a moderator

Re: i have some trobles// Need help [message #161528 is a reply to message #161527] Mon, 04 January 2010 18:19 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Cannot connect to it:

$ ~/web/lamp/php/bin/php ./nntp.php 1
Unable to establish connection to sochi.test on port 119 failed
With Error #110 : Connection timed out
Re: i have some trobles// Need help [message #161530 is a reply to message #161528] Mon, 04 January 2010 18:39 Go to previous messageGo to next message
rover_scan is currently offline  rover_scan   Russian Federation
Messages: 31
Registered: January 2010
Karma: 0
Member

hm. on my hosting cron working without errors and timeouts. maybe ping or traseroute not good? i can give access to hosting, but only tomorrow. we already night Smile
Re: i have some trobles// Need help [message #161532 is a reply to message #161530] Mon, 04 January 2010 19:03 Go to previous messageGo to next message
rover_scan is currently offline  rover_scan   Russian Federation
Messages: 31
Registered: January 2010
Karma: 0
Member

sochi.test - is a group
server - news.sochitel.ru
Re: i have some trobles// Need help [message #161533 is a reply to message #161532] Mon, 04 January 2010 19:44 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
OK, I've loaded a couple of messages. Here is the headers of one that is all messed up:

From: "ShuriK" <proverka(at)microsoft(dot)com>
Newsgroups: sochi,sochi.auto,sochi.talk,sochi.test
Subject: �����: �������� ����� 54,8 ���� ������!!!!!!!!!!!!!! 8-\
Date: Thu, 5 Nov 2009 09:21:11 +0300
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 93.190.16.190
Message-ID: <4af27450$1(at)news(dot)sochi(dot)ru>
X-Trace: news.sochi.ru 1257403472 93.190.16.190 (5 Nov 2009 09:44:32 +0400)
X-Authenticated-User: alexandr
Path: news.sochi.ru!not-for-mail
Xref: net sochi:3984 sochi.auto:13365 sochi.talk:51064 sochi.test:31812


There is no indication of how it's encoded and there is no way for FUDforum (or any other program for that matter) to correctly parse and load it.

Re: i have some trobles// Need help [message #161537 is a reply to message #161533] Tue, 05 January 2010 05:07 Go to previous messageGo to next message
rover_scan is currently offline  rover_scan   Russian Federation
Messages: 31
Registered: January 2010
Karma: 0
Member

And if in the case of "no indication of how it's encoded" do iconv (koi8r-> UTF)?

I found the script, which determines the encoding.

http://tony2001.phpclub.net/misc/detect_charset/index.php

As I understand it should be the result of this script (some message) transfer function iconv. But I did not have enough knowledge and experience in PHP to do it - nntp.php nntp.inc and difficult to understand for me ...
Re: i have some trobles// Need help [message #161544 is a reply to message #161519] Wed, 06 January 2010 03:29 Go to previous messageGo to next message
rover_scan is currently offline  rover_scan   Russian Federation
Messages: 31
Registered: January 2010
Karma: 0
Member

While he made a correction to nntp.inc line 529.
It was $ charset = $ GLOBALS [ 'CHARSET'];

So $ charset = "KOI8-R";

not good, but it works Smile

Can anyone suggest another solution?
Re: i have some trobles// Need help [message #161545 is a reply to message #161544] Wed, 06 January 2010 06:08 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
I would put the detection and conversion code in the get_message() function right after the loop where $this->raw_msg is constructed.
Re: i have some trobles// Need help [message #161549 is a reply to message #161545] Wed, 06 January 2010 16:04 Go to previous message
rover_scan is currently offline  rover_scan   Russian Federation
Messages: 31
Registered: January 2010
Karma: 0
Member

thanks, I'll try to understand. Code difficult to understand for me (I'm still a beginner programmer), still has better than it was.

[Updated on: Wed, 06 January 2010 16:05]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Invisible message icons
Next Topic: Moderate Forum Posts...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 10:06:28 GMT 2024

Total time taken to generate the page: 0.02084 seconds