Lars Gullik Bjønnes wrote:

> Georg Baum <[EMAIL PROTECTED]>
> writes:
> 
> | José Matos wrote:
> | 
> | >   I am afraid but revert_utf8 will not be so simple. If I mix latin-1
> | >   and
> | > latin-2 chars (an easy exercise now) how do we convert the resulting
> | > document?
> | 
> | That will probably become messy. For now I would like to have a
> | 248<->249 conversion that works at least for existing 248 documents.
> 
> 248->249 is easy... 249->248 is impossible.

No. As long as you only put e.g. latin1 characters in a german document it
should simply work with the code I posted. If you also have latin2
characters you will get a python exception.
IMO the case that the conversion will work will be quite common, so I'd like
to support that.

I think that this is good enough for now. We should give some better
feedback in the error case in the future.

I will commit this once I sorted out the compile problems and can test it.


Georg

Reply via email to