Re: Remove characters from string

2011-03-18 Thread Kyle Sluder
On Fri, Mar 18, 2011 at 8:28 AM, John Joyce wrote: > You might also consider using HTML entities for those, as you never know what > the browser/user-agent has set for encoding... You do if you generate correct HTML and your web server emits the correct Content-type header. Charles, since it so

Re: Remove characters from string

2011-03-18 Thread John Joyce
You might also consider using HTML entities for those, as you never know what the browser/user-agent has set for encoding... On Mar 18, 2011, at 11:24 PM, Gary L. Wade wrote: > In that case, you should determine what encoding your web page is being > displayed in and convert your NSString to th

Re: Remove characters from string

2011-03-18 Thread Gary L. Wade
In that case, you should determine what encoding your web page is being displayed in and convert your NSString to that encoding. If it's in UTF8, you can use UTF8String; otherwise, consider dataUsingEncoding: or related messages to see if that will do what you need. - Gary L. Wade (Sent from my

Re: Remove characters from string

2011-03-18 Thread Heizer, Charles
I'm looking to clean up some system profiler data before sending it to a database to have it displayed on a web page. Wile I can insert the data in to the MySQL database just fine. The copyright and registered symbols do not display properly on a web page. I was just thinking to make life easy I co

Re: Remove characters from string

2011-03-17 Thread Gary L. Wade
Is it possible you're assuming text being given to you is in ASCII format but is actually in UTF-8 or some other encoding? Try looking at the text you have in other encodings before trying to remove characters. On 03/17/2011 6:03 AM, "Heizer, Charles" wrote: >Hello, >I would like to know how to

Re: Remove characters from string

2011-03-17 Thread Dave Carrigan
On Mar 17, 2011, at 10:47 AM, Heizer, Charles wrote: > I really don¹t want to search though the entire string to find a replace. > The "©" is just an example of the characters I would like to remove. I > guess my real question is how do I remove all Unicode characters from a > string? Given that

Re: Remove characters from string

2011-03-17 Thread Kyle Sluder
On Thu, Mar 17, 2011 at 10:47 AM, Heizer, Charles wrote: > I really don¹t want to search though the entire string to find a replace. > The "©" is just an example of the characters I would like to remove. I > guess my real question is how do I remove all Unicode characters from a > string? You ca

Re: Remove characters from string

2011-03-17 Thread David Duncan
On Mar 17, 2011, at 10:47 AM, Heizer, Charles wrote: > I really don¹t want to search though the entire string to find a replace. > The "©" is just an example of the characters I would like to remove. I > guess my real question is how do I remove all Unicode characters from a > string? I think i

Re: Remove characters from string

2011-03-17 Thread Heizer, Charles
I really don¹t want to search though the entire string to find a replace. The "©" is just an example of the characters I would like to remove. I guess my real question is how do I remove all Unicode characters from a string? Thanks, Charles On 3/17/11 7:31 AM, "Conrad Shultz" wrote: >

Re: Remove characters from string

2011-03-17 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/17/11 7:03 AM, Heizer, Charles wrote: > Hello, > I would like to know how to remove certain characters from a NSString. The > characters are "©". I thought I could just use encodings and convert the > string using NSASCIIStringEncoding but that d

Remove characters from string

2011-03-17 Thread Heizer, Charles
Hello, I would like to know how to remove certain characters from a NSString. The characters are "©". I thought I could just use encodings and convert the string using NSASCIIStringEncoding but that did not work and I'm not sure what the car codes are for these as well. Thanks, Charles _