On Tue, Feb 22, 2005 at 05:43:23PM +0100, cobaco (aka Bart Cornelis) wrote: > On Tuesday 22 February 2005 14:34, Andreas Schuldei wrote: > > how are the config.info.XX files in webmin generated? > > by the scripts in po-webmin (po2webmin specifically) [1] > > > i noticed that the module config pages are displayed in > > ISO-8859-1 encoding, while the strings in config.info are utf-8. > > > > can we generate them in latin1 right away? > > <groan>, yes this can be done, in fact that used to be the case: > This was changed recently [2] because supposedly our modules are using utf-8 > (instead of the default webmin-encodings).
webmin handles the module config page itself and uses latin1 there, while i use utf-8 on wlus pages. > Can anyone tell me conclusively: > - whether our modules use utf-8 or not? wlus does, as far as it can. > - if they do use utf-8, does that go for the entire module or only for the > lang/XX files (with the config.info.XX files, and module.info using the > webmin default?) lang/XX files are utf-8, config.info would need latin1. what is module.info? > - wether it is possible to autodetect the encoding used by a > module/different parts of a module? If so how? one can detect utf-8 by doing a iconf -f utf-8 -t utf-8. if that succeeds it is either pure ascii or utf-8. if it fails it *could* be a mix. that is an evil corner case which is not easy to handle in an automatic way. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

