Hello everyone,
First, a big thank to Sherm Pendley for writing CamelBones.
That's really a great piece of software!
Now the problem :-)
I'm writing a small app, which is currently very simple: a window
that contains a NSTextField and a button. Connected to the button,
a function that read the text from the NSTextField.
When I write some text (say, "hello") and I click, i get the text. No
problem.
When I write some Japanese text and I click, I get the following error
in ProjectBuilder:
Exception raised during posting of notification. Ignored.
exception: Conversion to encoding 30 failed for string
"\\u304a\\u306f\\u3088"
In this case, I wrote "ohayo".
The Perl code behind the button is:
sub ConvertButtonClicked {
my $self = shift;
my $text = $self->{'UnicodeInput'}->stringValue;
return 1;
}
where "UnicodeInput" is the name of the outlet corresponding
to the NSTextField. I also tried with "use utf8", but with no result.
Does anybody know a way (in Perl or in ObjC) to get around this bug?
-- Maddingue
-- - --[ [EMAIL PROTECTED] ]--- -- - --[ http://maddingue.org ]