🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #141828

Re: [Dialog] Changing encoding of drafts on the fly

#141828
From: Paul Gorodyansky
Date: Thu, 22 Jan 2004 04:01
68 lines
4392 bytes
Enrico Bauer wrote:
> 
> Dialog chooses the minimal codepage that includes all used characters.
> This might not be a Windows-specific codepage like Windows-1251. It's
> not present on unix-based systems for instance.
> AFAICS the /right/ char set for cyrillic is iso-8859-5. 

No, the platform-independent de-facto standard is KOI8-R - for the exact
reason you and Ted wrote:
  - it's NOT possible to create an iso-8859-5 text in say a plain text
    editor under Windows (no fonts and not keyboard tools)
  - it's NOT possible to create windows-1251 text under Unix

So historically Russian tech people used 'common-ground', 'network'
encoding Cyrillic(KOI8-R) that programs on all platforms understand -
Mac, Unix, Windows...

BTW, most Unix installation in Russia are immediately changed from
iso-8859-5 to KOI8-R (AFAIK, even Sun offers KOI8-R to let people
avoid such step)

With *modern* Mail/News programs with MIME support it's really becomes
irrelevant, for example in Netscape 7/Mozilla or in Outlook Express
(both are Unicode programs):
  a) you type your text in _local_ encoding, using _local_ fonts and
    keyboard tools, for example:
     - under Unix where iso-8859-5 is used, they use iso-8859-5 fonts
       and iso-8859-5 keyboard tools
     - under Windows they let you use Windows-1251 fonts such as
       Arial, Times New Roman, Courier New and any other Unicode font
       (where under Windows Russian is presented as windows-1251)
       and standard Windows keyboard tools for Russian - which means
       windows-1251 keyboard

You typed really in a Unicode Edit Control, so what you have is a 
Unicode text (UCS-2 ~= UTF-16 - 16-bit fixed width Unicode).

  b) Now it is time to sned this message, so a program MUST *conbert*
     the text to one of _Internet_ encodings (UCS-2 is not used there):
      UTF-8, Cyrillic(Windows-1251), Cyrillic(iso-8859-5),
      Cyrillic (KOI8-R) or - if a user is not familiar with non-Western
      data processing - using currently selected "Western" encoding

    In the "Western" case one sends just ???? (which is easily seen in
    SENT folder), because program does conversion
    Uncidode-text-with-Cyrillic ---> Western
     but Western does not have Cyrillic letters and the result is ?
     which means "symbol is not found in target encoding)

    All other encodings will be fine - UTF-8 or any Cyrillic one -
    and as you see, because a program can convert _Unicode_ text you
    typed into _any_ encoding, it does *not* matter any more that say
    "I cannot prepare iso-8859-5 text under Windows because I don't
     have iso-8859-5 fonts/keyboard tools" -

    modern program does it for you and if you choose iso-8859-5 then
    it will convert the text from Unicode to iso-8859-5 and send
    iso-8859-5 text to the Internet!

    It will also place   charset=iso-8859-5 into MIME header...


-- 
Regards,
Paul A. Gorodyansky
"Cyrillic (Russian): instructions for Windows and Internet":
http://ourworld.compuserve.com/homepages/PaulGor/
Technical Details
Message-ID: <bunhuk$k1g3v$1@ID-25072.news.uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!198.175.229.1!not-for-mail
References: <18lf8m0bsahn3$.1kr5h8yoocnmv.dlg@40tude.net> <13hwlmm1yvmmz.dlg@news.lillathedog.net> <Xns9473EBC74D93C8jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de> <16t9ba8b8fjas$.dlg@ID-5349.user.dfncis.de>

Show Full Headers
Complete Article Headers
Message-ID: <bunhuk$k1g3v$1@ID-25072.news.uni-berlin.de>
Subject: Re: [Dialog] Changing encoding of drafts on the fly
Date: Wed, 21 Jan 2004 20:01:20 -0800
From: Paul Gorodyansky <paulgor@compuserve.com>
References: <18lf8m0bsahn3$.1kr5h8yoocnmv.dlg@40tude.net> <13hwlmm1yvmmz.dlg@news.lillathedog.net> <Xns9473EBC74D93C8jUwe9053kODf78sfkj0@ID-121946.user.dfncis.de> <16t9ba8b8fjas$.dlg@ID-5349.user.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!feed.news.tiscali.de!fu-berlin.de!uni-berlin.de!198.175.229.1!not-for-mail
Newsgroups: news.software.readers
Organization: Private person
Lines: 68
NNTP-Posting-Host: 198.175.229.1
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1074744084 21020799 198.175.229.1 ([25072])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
X-Accept-Language: en,ru
In-Reply-To: <16t9ba8b8fjas$.dlg@ID-5349.user.dfncis.de>