String manipulation
am 24.12.2007 19:53:00 von ibrahim
Hi,
I am reading a csv file (comma separated values) by reading each line into a
string and then using the split method to break it apart. I am running into
a problem when the comma separated values contain super script text like the
Trade Mark initials that are part of the text of the sparated values. Visual
Studio 2005, shows the initials TM as a box within the string. I am comparing
the strings from the csv file to database entries which actually contain the
TM as super script letters within the text. How can i make the comparison
work. I used String.Compare with StringComparison.Ordinal but it does not
work. What do i need to do to get to work?
--
Thank you,
Ibrahim
Re: String manipulation
am 26.12.2007 13:29:18 von Kevin Spencer
There is no such thing as superscript in text. Text is pure text, without
formatting. So, it's hard to understand exactly what your problem is.
--
HTH,
Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
"Ibrahim" wrote in message
news:7BD727D0-2FCE-4900-97A1-EF46D6007996@microsoft.com...
> Hi,
> I am reading a csv file (comma separated values) by reading each line into
> a
> string and then using the split method to break it apart. I am running
> into
> a problem when the comma separated values contain super script text like
> the
> Trade Mark initials that are part of the text of the sparated values.
> Visual
> Studio 2005, shows the initials TM as a box within the string. I am
> comparing
> the strings from the csv file to database entries which actually contain
> the
> TM as super script letters within the text. How can i make the comparison
> work. I used String.Compare with StringComparison.Ordinal but it does not
> work. What do i need to do to get to work?
> --
> Thank you,
> Ibrahim