Hello!
Thank you very much for your help. I concerned your advice and here is
what I got.


On Tue, 29 Feb 2000, Klaus Weide wrote:
> On Sun, 27 Feb 2000, Ivan Zakharyaschev wrote:
> > I use Lynx Version 2.8.3dev.14 and I don't like the following
> behavior of
> > it when reading Russian documents:
> > 
> > I have these parameters pre-set:
> > display character set: koi8-r
> > assumed document charset: koi8-r
> > 
> > Then I browse to a page written in another (windows-1251) charset,
> and, of
> > course, the browser shows some rave. Then go to the options screen,
> change
> > the assumed document charset to the appropriate one and accept the
> > changes. After this the document is reloaded and I can read it (it is
> > displayed correctly). So far everything seems to be all right.
> > 
> > But here comes the interesting thing: when I open another page with
> the
> > same charset (win-1251), for instance, following a link from the
> original
> > page (that was also in win-1251), I get again the document displayed
> in a
> > wrong way, still the options remain unchanged (one can see it going
> to the
> > options screen - the document charset is still the second one -
> win-1251).
> 
> This would happen you had visited the second page earlier, while the
> effective "assumed" charset was still koi8-r.  In that case in may
> still
> be in the cache of rendered documents, and lynx will not automatically
> reload it when you follow the link again.  But it should be rendered
> correctly after you do a ^R)eload (or any of the other commands that
> imply reloading, like <*>, <'>, <`>, <]>).  Or, alternatively, if you
> use 'x' instead of Enter to follow the link.

OK, some of this work, some don't. ^R)eloading does work (and <`>, <'>,
<*> - which reload the document), but retrieving the head by pressing <]>
doesn't help. Of course, that's not so important. Using 'x' instead of
Enter to follow a link doesn't make the browser render the document
correctly.

> If this was not the case, please give example URLs.  (Something in
> those pages might cause unusual behavior, for example HTTP headers
> or META tags.)
> 
> Also, if caching soesn't explain what you see, try the alternative

Generally, caching explains all this but there are two points that run
across my ideas about caching: first, the browser retrieves the document
for quite a long time (I mean, it isn't done just at one moment, not as if
the document would have been stored on the local filesystem), and
secondly, the cache isn't updated (so when I load the document assuming
the right charset, it isn't stored another time in the cache). Maybe I'm
just a lamer and I don't know how it works.

> Yes, "Assumed document character set" doesn't get saved; it should be
> marked with (!), but that may have been added after dev.14.

In fact, it is already marked with (!).

> By the way, if your normal use of lynx involves frequent toggling
> between (only) two "assumed document charset"s, it may be more
> convenient
> for you to use '@' for toggling (instead of going to the 'O'ptions
> scree each time).  In that case, you should probably set up lynx like
> this:
> 
> On start,
> > display character set: koi8-r    (saved from 'O'ptions screen in
> .lynxrc)
> > assumed document charset: windows-1251 (set in lynx.cfg, or command
> line)
> then add -raw flag (if starting with a koi8-r page) and use '@' to
> toggle.

Thank you, Klaus. This is really a very convenient enhancement in my using
Lynx.

Ivan.



Reply via email to