🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #117231

Re: NewsMaestro/Kadaitcha Man/Berzerker can't forge the UTF-8 in my posts. (test)

#117231
From: Gregory Hall
Date: Tue, 14 Jul 2009 17:43
43 lines
2762 bytes
<_@Jeff_Relf.Seattle.inValid> wrote in message 
news:_@Jeff_Relf.Seattle.2009_Jul14.10.28am.W0...
> Every single post of mine, without exception,
> has UTF-8 in both the header and the body.
> The title begins with U+FeFF, as does the body.

A feature cabbaged from Forte Agent code , no doubt

>
> This "UTF-8 signature", in UTF-8, is hex: eF, bb, bF.

Looks more like af, bb, bf to me

>
> RFC 2781, a.k.a. "UTF-16, an encoding of ISO 10646", section 3.2 says:
> " In particular, in UTF-16 plain text,
>  it is likely, but not certain, that an initial 0xFEFF is a signature.
>
>  When concatenating two strings,
>  it is important to strip out those signatures,
>  because, otherwise, the resulting string may contain an
>  unintended "ZERO WIDTH NON-BREAKING SPACE" at the connection point.
>
>  Also, some specifications mandate
>  an initial 0xFEFF character in objects labelled as UTF-16 and
>  specify that this signature is not part of the object. ".
>
> From " www.JeffRelf.F-M.FM/X.CPP ", you can strip out UTF+FeFF
> using the bog-standard GetStringTypeW() that comes with <Windows.H>,
> like this:
>  { LnP  P = Funky - 1 ;
>    GetStringTypeW( CT_CTYPE1, Funky, cnt·Props, BoProps );
>    Loop( cnt·Props )
>      if ( P++, !*++Prop || *Prop & C1_CNTRL )
>        wmemmove( P, P+1, --cnt·Real - ( P - Funky ) ), --P ;  }


Ouch!

-- 
Gregory Hall

Technical Details
Message-ID: <2vf5ku.ae4.19.1@news.alt.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.addix.net!news.glorb.com!news2.glorb.com!headwall.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news.alt.net
References: <mhf2355af9u4b26m91r31rkc49i2g9vqnf@MAESTRO> <_@Jeff_Relf.Seattle.2009_Jun11.0.19pm.Yo> <Xns9C485323C26C653F89A@news-3.octanews.net> <2vepap.q7p.17.1@news.alt.net> <_@Jeff_Relf.Seattle.2009_Jul14.9.05am.mk> <a6dp55d367ka73laolp7vl9cprqk37udnu@MAESTRO> <_@Jeff_Relf.Seattle.2009_Jul14.10.28am.W0>

Show Full Headers
Complete Article Headers
Message-ID: <2vf5ku.ae4.19.1@news.alt.net>
Subject: Re: NewsMaestro/Kadaitcha Man/Berzerker can't forge the UTF-8 in my posts. (test)
Date: Tue, 14 Jul 2009 13:43:23 -0400
From: "Gregory Hall" <greghall@home.fake>
References: <mhf2355af9u4b26m91r31rkc49i2g9vqnf@MAESTRO> <_@Jeff_Relf.Seattle.2009_Jun11.0.19pm.Yo> <Xns9C485323C26C653F89A@news-3.octanews.net> <2vepap.q7p.17.1@news.alt.net> <_@Jeff_Relf.Seattle.2009_Jul14.9.05am.mk> <a6dp55d367ka73laolp7vl9cprqk37udnu@MAESTRO> <_@Jeff_Relf.Seattle.2009_Jul14.10.28am.W0>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.addix.net!news.glorb.com!news2.glorb.com!headwall.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news.alt.net
Newsgroups: alt.free.newsservers, alt.usenet.kooks, alt.binaries.news-server-comparison
 alt.binaries.news-server-comparison
Organization: Overqualified for MENSA
Lines: 43
In-Reply-To: <_@Jeff_Relf.Seattle.2009_Jul14.10.28am.W0>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005
X-RFC2646: Format=Flowed; Original