> I was wrong that Icofy.si4 is
> ISO-8859-1 encoded, indeed the correct
> encoding is CP-850 (DOS code page). That means opening the
> database
> with Scid will give some garbage (because the system
> ecoding is usually
> ISO-8859-1 or UTF-8). Try to open Icofy.si4 with encoding
> cp850 and
> look at game 275214, only with cp850 the name of the black
> player is correct.
Our icofy DBs seem out of sync, as i can't see any problem with #275214... but
doesn't matter.
> It's quite annoying that the user has to guess the right
> encoding,
> but I do not know any way to auto-detect the encoding.
> Does anyone know a solution?
Haha... does *anyone* know more about Tcl string encodings than you ?!
But I don't think you should grey the 'File encoding' entrybox. It indicates
that this item is not changeable.
Ordinarily this widget should be a dropbox, but because of the size of the
encoding selection widget, it is not and you probably need another widget for
"Select encoding".
Or two other ideas:
1. replace the "File encoding" label with a "Select encoding" *button*.
2. or make the entry box a "dummy" dropbox and
'bind dropbox <FocusIn> {create encoding toplevel dialog}'
Steve