On Sat, Jul 4, 2009 at 11:44 PM, Carsten Zandecki<[email protected]> wrote:
> Hi there,
> i remember this behaviour and use the following solution.
>
> Herbert Breuning told me to change the codepage to UTF-8, which first
> doesn't worked for me.
> But in the meantime I found out that i had to set the codepage for each
> scintilla document. It is not enough to set codepage only for the scintilla
> control - i think.
>
> So i set the codepage directly after changing the scintilla document pointer
> (or maybe, it is enough just to set the codepage after creating a document -
> which i haven't tested yet ... ).
>
> This works for me:
>
> $self->{Editor}->AddRefDocument($doc);
> $self->{Editor}->SetDocPointer($self->{Buffer}[$page][0]);
> $self->{Editor}->ReleaseDocument($self->{Buffer}[$page][0]);
>
> $self->{Editor}->SetCodePage(65001);
>
> After that you just have to ensure that your file data is UTF-8.
>
> Hope it helps ...

We set the code page at the time we create the editor object:
http://padre.perlide.org/trac/browser/trunk/Padre/lib/Padre/Wx/Editor.pm#L116

Still after pressing Del I cannot type ő and ű
other Hungarian vowels can be typed and if I press any key (including
the shift or Ctrl)
after that the above two characters can be aslo typed.


if you have time, I'd really appreciate if you took a look at Padre and how to
fix this issue there ?

Gabor

Reply via email to