Article View: alt.free.newsservers
Article #117229--
From: _
Date: Tue, 14 Jul 2009 17:29
Date: Tue, 14 Jul 2009 17:29
27 lines
2430 bytes
2430 bytes
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.
This “UTF-8 signature”, in UTF-8, is hex: eF, bb, bF.
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 ; }
Technical Details
Message-ID:
<_@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.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!post02.iad!news.shared-secrets.com!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <_@Jeff_Relf.Seattle.2009_Jul14.10.28am.W0> Subject: -- Date: Tue, 14 Jul 2009 17:29:01 +0000 From: _@Jeff_Relf.Seattle.inValid 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> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!post02.iad!news.shared-secrets.com!not-for-mail MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Newsgroups: alt.free.newsservers, alt.usenet.kooks, alt.binaries.news-server-comparison alt.binaries.news-server-comparison User-Agent: JeffRelf.F-M.FM/X.ZIP Lines: 27 Organization: Unknown X-Complaints-To: abuse@shared-secrets.com