Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > how the macro works

Reply
Thread Tools

how the macro works

 
 
Toms hilidhe
Guest
Posts: n/a
 
      12-12-2007
Philip Potter <(E-Mail Removed)> wrote in news:fjp525$dj5$(E-Mail Removed):

> The important thing is that you do not set a character encoding in
> your headers. For example:
>
> Content-Type: text/plain; charset=utf-8
>
> If you don't provide this information, my newsreader cannot magically
> know which character set you're using; and you have no reason to
> expect it to default to UTF-8 because I might meet someone else who
> expects it to default to ISO-8859-1.
>
> As a matter of fact I do use UTF-8 as default. If I change it to
> ISO-8859-1 then I get "Tomás Ó hÉilidhe wrote:" which looks more
> likely. So it seems you aren't using UTF-8 at all, but one of the
> ISO-8859 family.
>
> Unfortunately, I don't have any advice for you on how to rectify the
> situation because I use a different newsreader. Nevertheless, I wish
> you the best of luck fixing it.



I started out using a Linux newsreader called Pan, but it turned out to be
crap.

At the moment I'm using a Windows newsreader called XNews, which is
supposedly the best newsreader ever (or so say the people who recommended
it to me). I wouldn't have thought that XNews got it wrong when it came to
character encoding. . . ?

--
Toms hilidhe
 
Reply With Quote
 
 
 
 
Ben Bacarisse
Guest
Posts: n/a
 
      12-12-2007
"Tomás Ó hÉilidhe" <(E-Mail Removed)> writes:

> Philip Potter <(E-Mail Removed)> wrote in news:fjp525$dj5$(E-Mail Removed):
>
>> The important thing is that you do not set a character encoding in
>> your headers.

<snip>
> I started out using a Linux newsreader called Pan, but it turned out to be
> crap.
>
> At the moment I'm using a Windows newsreader called XNews, which is
> supposedly the best newsreader ever (or so say the people who recommended
> it to me). I wouldn't have thought that XNews got it wrong when it came to
> character encoding. . . ?


I would not have thought so either, but your postings arrive here with
no encoding specified and characters outside the safe 7-bit range.
There is probably an XNews group or mailing list where you can ask
about fixing this.

--
Ben.
 
Reply With Quote
 
 
 
 
Richard Bos
Guest
Posts: n/a
 
      12-13-2007
Philip Potter <(E-Mail Removed)> wrote:

> "Tom��������������� ���������������� " wrote:
> > Philip Potter <(E-Mail Removed)> wrote in news:fjp0c2$v2j$(E-Mail Removed):
> >
> >> Chris Dollin wrote:
> >>> Tom�s � h�ilidhe wrote:
> >>>
> >>> (Those are funny characters in the name.)
> >> Not as funny as they appear to me:
> >> "Tomï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ ½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ ������ï
> >> ¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿ ½ï¿½" wrote:

> >
> > Do you not use UTF-8 in your newsreader?

>
> The important thing is that you do not set a character encoding in your
> headers. For example:


The most important thing is that, Welshmen and Friesians
notwithstanding, Usenet is still a 7-bit medium, and those who assume
otherwise do so at their own peril, and at the peril of their names'
spelling.

Richard
 
Reply With Quote
 
Philip Potter
Guest
Posts: n/a
 
      12-13-2007
"Tom��������������� ���������������� " wrote:
> Philip Potter <(E-Mail Removed)> wrote in news:fjp525$dj5$(E-Mail Removed):
>
>> The important thing is that you do not set a character encoding in
>> your headers. For example:
>>
>> Content-Type: text/plain; charset=utf-8
>>
>> If you don't provide this information, my newsreader cannot magically
>> know which character set you're using; and you have no reason to
>> expect it to default to UTF-8 because I might meet someone else who
>> expects it to default to ISO-8859-1.
>>
>> As a matter of fact I do use UTF-8 as default. If I change it to
>> ISO-8859-1 then I get "Tomás Ó hÉilidhe wrote:" which looks more
>> likely. So it seems you aren't using UTF-8 at all, but one of the
>> ISO-8859 family.
>>
>> Unfortunately, I don't have any advice for you on how to rectify the
>> situation because I use a different newsreader. Nevertheless, I wish
>> you the best of luck fixing it.

>
> I started out using a Linux newsreader called Pan, but it turned out to be
> crap.
>
> At the moment I'm using a Windows newsreader called XNews, which is
> supposedly the best newsreader ever (or so say the people who recommended
> it to me). I wouldn't have thought that XNews got it wrong when it came to
> character encoding. . . ?


It seems that they did. Appealing to reputation can be useful, but it
doesn't trump the evidence of your postings. Have a look at the full
headers yourself - notice that most people here will declare a charset
in their headers, especially if they want to use non-ASCII characters
like ᩲ‡. A quick google for "xnews charset" turned up this:

http://tinyurl.com/ypfygj

which seems to show that XNews' creator considers the software to be
aimed at himself only, and isn't interested in catering to things he
isn't interested in. It seems character sets is one of those things.

There is also a link on that page to a tool which claims to fix this
problem in XNews.

Phil
 
Reply With Quote
 
Toms hilidhe
Guest
Posts: n/a
 
      12-13-2007
Philip Potter <(E-Mail Removed)> wrote in comp.lang.c:

> The important thing is that you do not set a character encoding in
> your headers. For example:
>
> Content-Type: text/plain; charset=utf-8



I manually went into my XNews settings and added "custom headers".

How does this post look?

--
Toms hilidhe
 
Reply With Quote
 
Toms hilidhe
Guest
Posts: n/a
 
      12-13-2007
"Toms hilidhe" <(E-Mail Removed)> wrote in comp.lang.c:


> I manually went into my XNews settings and added "custom headers".
>
> How does this post look?



Damn, looks like I didn't enable the new settings.


How does this post look?


--
Toms hilidhe
 
Reply With Quote
 
Philip Potter
Guest
Posts: n/a
 
      12-13-2007
"Tom��������������� ���������������� " wrote:
> Philip Potter <(E-Mail Removed)> wrote in comp.lang.c:
>
>> The important thing is that you do not set a character encoding in
>> your headers. For example:
>>
>> Content-Type: text/plain; charset=utf-8

>
>
> I manually went into my XNews settings and added "custom headers".
>
> How does this post look?
>


Can't you see for yourself? Find the option in XNews to display all headers.

In any case, I think the above attribution line speaks for itself.

Incidentally, your sig comes out as:
Tomás Ó hÉilidhe
which is fine. It seems your message body is UTF-8 but your header is
ISO-whatever-it-is. This is not a good situation.
 
Reply With Quote
 
Ben Bacarisse
Guest
Posts: n/a
 
      12-13-2007
"Tomás Ó hÉilidhe" <(E-Mail Removed)> writes:

 
Reply With Quote
 
David Thompson
Guest
Posts: n/a
 
      12-24-2007
On Wed, 12 Dec 2007 17:16:53 +0000, Philip Potter <(E-Mail Removed)>
wrote:

> "Tom????????????????????????????????" wrote:
> > Philip Potter <(E-Mail Removed)> wrote in news:fjp0c2$v2j$(E-Mail Removed):
> >
> >> Chris Dollin wrote:
> >>> Tom�s � h�ilidhe wrote:
> >>>
> >>> (Those are funny characters in the name.)


> > Do you not use UTF-8 in your newsreader?

>
> The important thing is that you do not set a character encoding in your
> headers. For example:
>
> Content-Type: text/plain; charset=utf-8
>

Or 8859 or whatever. But that applies to the (single-part) BODY.
The correct way to use non-7-bit-ASCII IN HEADERS, in particular the
'From:' header, is =?cset?Q?qp?= or =?cset?B?b64?= per RFC 2047.

It's probably possible to configure this by hand if your program can't
(or won't) be fixed; alternatively the OP might consider just using
the (ASCII) address and an ASCII-compatible nickname, with the real
name in the sig -- which at protocol level is in the body, as above.
Or if there is an acceptable ASCII transliteration of the name.

- formerly david.thompson1 || achar(64) || worldnet.att.net
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
When I turn on my PC, it works, works, works. Problem! Fogar Computer Information 1 01-17-2006 12:57 AM
#define macro to enclose an older macro with strings Dead RAM C++ 20 07-14-2004 10:58 AM
After rebooting my PC works, works, works! Antivirus problem? Adriano Computer Information 1 12-15-2003 05:30 AM
macro name from macro? D Senthil Kumar C Programming 1 09-21-2003 07:02 PM



Advertisments