Re: Unicode replaceOccuranceOfString?
Re: Unicode replaceOccuranceOfString?
- Subject: Re: Unicode replaceOccuranceOfString?
- From: Rachel Blackman <email@hidden>
- Date: Sat, 18 Sep 2004 23:54:56 -0700
Unfortunately, I am at a complete loss on a way to do this. There is no way to encode non-7-bit characters in a string literal, as I know, but for whatever reason, NSLocalizedStringFromTable doesn't seem to work. I have to index by some kind of code (such as 'suh-emdash' for 'stupid Unicode hack: mdash) and for whatever reason, I still get 'suh-emdash' as my string. And yet unipunc.strings is in the English.lproj directory of my finalized .app... so I'm at a bit of a loss.
Before anyone replies with the suggestion, I should mention that I've already checked the property list in Xcode as well with the Format -> Parse File as Property List and it checks out fine. I'm sure given time, I could determine what's causing the problem.
My issue at this point is that I feel like I'm going about this the wrong way entirely anyway with localizable strings (especially since it won't handle defaults gracefully if I happen to forget to create unipunc.strings for a specific localization down the road), and am checking if there's a better way to do this replacement of specific Unicode characters in an NSString which I got from the user.
I shouldn't have this much headache trying to just replace the Unicode emdash with a - or the Unicode ellipse with ... and so on! ;)
--
Rachel 'Sparks' Blackman -- sysadmin, developer, mad scientist
"If it is not broken, give me five minutes to redesign it!"
_______________________________________________
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