[PyKDE] Re: [Patch] QScintilla , UTF-8, eric
Phil Thompson
phil at river-bank.demon.co.uk
Fri Dec 20 10:28:01 GMT 2002
On Thursday 19 December 2002 2:25 pm, Martin v. Löwis wrote:
> Serge <sergeyssv at mail.ru> writes:
> > 1. Code window in eric does not accept cyrillic characters
> > 2. It also does not display properly cyrillic UTF-8 characters
>
> Please try the attached patch. It implements PEP 263 for Eric3,
> putting the QScintilla widget into UTF-8 mode.
>
> Notice that you will need to add an encoding declaration to your
> files, e.g.
>
> # -*- coding: utf-8 -*-
>
> or
>
> # -*- coding: koi8-r -*-
>
> depending on what encoding you use in your files; if you have an UTF-8
> BOM in the file, no further declaration is necessary.
You will also need the latest QScintilla snapshot which fixes the bug that
Martin found which prevented characters encoded as two bytes to be entered.
Phil
More information about the PyQt
mailing list