procmail
[Top] [All Lists]

Re: Ways to add new features

2005-11-14 04:49:00
Google Kreme:
Ruud H.G. van Tol:

Unicode should be used where possible, but hidden where not needed.
The default encoding for .procmailrc4 could be ISO-8859-1, with an
option to change that to something like UTF-8 or UTF-16.
See also iconv(1).

UTF-8 no BOM.  Why?  Because then ISO-8859-1 files 'just work' as
they are.

No, UTF-8 encodes bytes >= 128 into two bytes. But you can of course put
7bit-information at the start that says that the file is meant as UTF-8.


See http://czyborra.com/utf/

  if (c < 0x80) {
    putchar (c);
  }
  else if (c < 0x800) {
    putchar (0xC0 | c>>6);
    putchar (0x80 | c & 0x3F);
  }
  etc.

-- 
Grtz, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>