If it weren't implemented you would get a method not found error.
Sorry it doesnt return undef but:
Uncaught exception from user code: Can't locate object method
"StyleGetCharacterSet" via package "ped::scintilla" at ped/scintilla.pm
line 42. at C:/Perl/site/lib/Wx/App.pm line 36
Wx::App::new('PED') called at t0.pl line 733
Try ->StyleSetCharacterSet(wxSTC_STYLE_DEFAULT,wxSTC_CHARSET_ANSI);
Omg, sorry my fault ... had not enough sleep that night before ...
Are those wrongly displayed umlauts characters you typed or
they come from a file/string? In the former case it might be a
Scintilla/wxSTC problem, in the latter case it might just be an
encoding problem.
They come from file, string and appear also, if i type some characters
in the control. I found
out, that they only appear if you try to handle multiple document views
via scintilla. Seems that it is a Scintilla/wxSTC problem maybe caused
by invalid pointers.
@herbert
Your kephra editor has the same problem. If only one document is open
everything seems fine.
But if there is more than one document the editor prints or receives 2
char i.e. for a 'ü'.
see screenshots. You can make the second byte visible by deleting the
'ü' with the backspace key.
Screenshot: http://www.mediaminds.de/kephra.jpg
Is this the ANSi or Unicode wxPerl? Try Wx::wxUNICODE() if you
are not sure.
It is the Unicode build ... Have no idea why that isn't possible ...
Thanx,
Carsten Zandecki ...
Mattia Barbon schrieb:
Carsten Zandecki wrote:
Hi,
is StyleGetCharacterSet() implemented in wxSTC yet ? Tried it but it
returns undef.
If it weren't implemented you would get a method not found error.
Also i have trouble with StyleSetCharacterSet:
$self->{Editor}->StyleSetCharacterSet->(wxSTC_STYLE_DEFAULT,wxSTC_CHARSET_ANSI);
Try ->StyleSetCharacterSet(wxSTC_STYLE_DEFAULT,wxSTC_CHARSET_ANSI);
returns
Uncaught exception from user code:
Usage: Wx::StyledTextCtrl::StyleSetCharacterSet(THIS, style,
characterSet) at
ped/scintilla.pm line 138. at C:/Perl/site/lib/Wx/App.pm line 36
Wx::App::new('PED') called at t0.pl line 708
----
Another problem with wxSTC is, that german umlauts will be displayed
as 2byte or 3byte(?) characters. the char and a control char is
displayed which happens to all characters > 127. Is this a Scintilla
problem ? Maybe a CharacterSet Problem or a Codepage problem ?
Are those wrongly displayed umlauts characters you typed or
they come from a file/string? In the former case it might be a
Scintilla/wxSTC problem, in the latter case it might just be an
encoding problem.
----
Furthermore i have still problems with german umlauts. wxFileDialog
returns a filename with
german umlauts correctly - i guess. But opening a file with the
returned filename (including german umlauts) returns undef and
doesn't open the file...
Tested on WinXP, ActivePerl 5.8.7 and wxPerl 0.82
Is this the ANSi or Unicode wxPerl? Try Wx::wxUNICODE() if you
are not sure.
Regards,
Mattia