On 16-2-2012 12:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
one more question -
- does "regimes.translate" allow to translate between arbitrary encodings or only from the specified to the current one?
no, although it's no big deal to provide that (of course there is then the matter of utf being more complete than the target)
---- str = regimes.translate(str, "cp1250") -- = Translate from "cp1250" to the current encoding (UTF) (or always to UTF?) ----
I'm looking for something like:
---- src_enc = "utf8" tgt_enc = "cp1250"
str = regimes.translate(str, src_enc, tgt_enc) ----
Any idea?
is there a reason not to stick to utf? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------