unicode problem
unicode problem
- Subject: unicode problem
- From: Daniel Child <email@hidden>
- Date: Mon, 31 Jan 2005 15:52:36 -1000
Hi everyone,
I realize my last message may not have been clear, so I'm enclosing code to show what specifically does not work. I have an entry field in which the user types a letter, and I check the value as follows:
- (id)sender
{
NSString *enteredValue;
enteredValue = [entryField stringValue];
if ([enteredValue isEqualToString: @"a"])
{
[resultField setStringValue:@"A"];
NSLog(@"It was an a.");
}
else if ([enteredValue isEqualToString: @"b"])
{
[resultField setStringValue:@"B"];
NSLog(@"It was a b.");
}
else if ([enteredValue isEqualToString: @"p"])
{
[resultField setStringValue:@""];
NSLog(@"It was an p.");
}
else if ([enteredValue isEqualToString: @""])
{
[resultField setStringValue:@"b"];
NSLog(@"It was an .");
}
else
{
[resultField setStringValue:@"?"];
NSLog(@"Entered letter was %@", enteredValue);
}
}
Letters are OK (a, b, etc.). However, the Bopomofo characters cannot be printed back to the resultField, and also do not show up properly in NSLog in the console. I'd appreciate your help. Thanks.
Daniel _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden