Is it me or does NNTP convert all bytes in the Extended ASCII range to '?'

Giganews Newsgroups
Subject: Is it me or does NNTP convert all bytes in the Extended ASCII range to '?'
Posted by:  NEws (..@a.com)
Date: Mon, 19 Jun 2006

I am using the following Class in vb.net

Public Class StreamNet
Inherits Indy.Sockets.TIdNetStream

Public Sub Dispose()

filestreamer.Close()

End Sub

Public Overloads Overrides Function Write(ByVal Buffer() As Byte, ByVal
Offset As Integer, ByVal Count As Integer) As Integer

filestreamer.Write(Buffer, Offset, Count)

End Function

Public Sub New(ByVal fiename As String)

filestreamer = New FileStream(fiename, FileMode.OpenOrCreate,
FileAccess.Write)

End Sub

End Class

In my Article grabber I use this

Dim stream as new StreamNet

Dim Connection as new Indy.Sockets.NNTP

# I have code that sets up the connection

then I use

Connection.GetBody(MsgID, stream)

The code then writes the file I need however....

The IOHandler is modifying the raw bytes to ASCII 127 and lower.

I have got a method of retreiving the Raw Bytes by reading the inputbuffer
however this isn't the way I wish for it to happen.

If anyone is able to tell me where the bytes are modified in the Delphi
source then I am willing to change and recompile the DLL.

I am really grateful for all the hardwork that has gone into this great
component and for any help I may receive.

P.S. I know I have asked about this before but I never knew how to use
TIDNetStream then.

I have tried modifying the input buffer encoding to utf-8 and ansii but both
create the same output.

Example of Article body that is getting corrupted(incorrectly handled)

=ybegin part=1 total=32 line=128 size=7814232 name=***Removed***
=ypart begin=1 end=245922
w"º*-***.***))**â*******j***********************************ú***8Iä8*Þ3÷Kâ+v÷K~'"JsoT'o<-J<~~TzJOJoY~J"~Jny}J-TZX774N*******
ß$=JÅÞÝÅÞÝÅÞÝ©½ÝÅÞÝÅßÝ{ÅÞÝo½Ý=JÅÞÝÏâ¯ÝÅÞÝÏâ®Ý ÅÞÝ`ÇÜÝÅÞÝ|"'ÅÞÝ********zo**v+/*îIOj********=J*9+5+0**^***þ+**.**rj***
:***s****j**:***,**.*******.********S-**.**Ñ¡*,*****:**:****:**:******:***********Z**Þ*****-**S***********R¡*,>***************
********************************************s**Ê,**************************Xz¢z***æ?***:***^***.**************J**SXoZ<z<**Ì;***
s***<***O**************j**jXZ<z<***ÖÙ+**º***.***z**************j**êX~Z<z<***ê***j,*********************ª**êXoo****S****-**|***
¢**************j**j*************************************************************************************************************
********************************************************************************************************************************
********************************************************************************************************************************
***]üµëµvN:lý µvN6/=J0**t³ºN@**]ülý µvN2³r.µvN.³2t³z2ì:*µ­J}?µ§2µ·

#### End of Original ####

#### Obtained via connectionNNTP ####

=ybegin part=1 total=32 line=128 size=7814232 name=***Removed***
=ypart begin=1 end=245922
w??*-***.***))**?*******j***********************************?***8I?8*?3?K?+v?K~???J???????J??????J??J???J??Jny}J????X774N*******
?$=J??????????????????{??????=J??????????????
???`??????|??????********zo**v+/*?IOj********=J*9+5+0**?***?+**.**rj***
:***?****j**:***,**.*******.********?-**.**??*,*****:**:****:**:******:***********Z?**?*****-**?***********R?*?>***************
********************************************?**?,**************************X????***??***:***?***.**************J**?X?????**?;***
?***<***?**************j**jX????***??+**?***.***?**************j**?X?????***?***j,*********************?**?X????****?****-**|***
?**************j**j*************************************************************************************************************
********************************************************************************************************************************
********************************************************************************************************************************
***]????vN:l? ?vN6/=J0**t??N@**]?l? ?vN2?r.?vN.?2t?z2?:*??J}????2???x>~-**??:?q2?0?q6??6*??.*?*.**?p2??J??+**?????=J0**m3
**??0**?o2.***?i?$?????*+**)w2??????4**???9???6**????6**?/**??&>**?/**??5*]?])\j??&?o=J?o?o?o-??"?o&??M?.G**? .?o"
-??x>?o{?v?J?-**??9??***9????j*??5*?o"?z?p.?x2Uo=Je??,-??8??=J0**?.2?x>?o?l.)???2M?&{?2T?9????t.?-??6j? 4-4A1**??5*Z??=J
0**?x>{?2?l.??2M?&T?9????t.?-??6j? 4-4u0**?8??p.?F2???>???J0**}?o5+?,**??9??***}???z0**?,**??}?w?o???J-**?,**???_9????j
*??.?x2?o"??Uo=Je??,-??8?F+?F;)p.???1**)o&?+**??=Jm????0**[,**???/??O}????0**E,**???/??3?o???o?o?o?o=J??=J?o)?"?p
>??&>**z-**9????j*?w"?***)?"??6**}?-**9????j*?".

#### End of Obtained Example ####

See what I mean?

Replies