Problem with unicode characters
-
Hi I have webservice which retrieves the users data from sql server. If one of the user uploads a doc with a small rectangle in the data retrived from database, my webservice is failing. Could any one please tell me, how can remove those Unicode characters before returning results. Thanks in advance,
-- http://ashakthi.blogspot.com http://kids-articles.blogspot.com
-
Hi I have webservice which retrieves the users data from sql server. If one of the user uploads a doc with a small rectangle in the data retrived from database, my webservice is failing. Could any one please tell me, how can remove those Unicode characters before returning results. Thanks in advance,
-- http://ashakthi.blogspot.com http://kids-articles.blogspot.com
You'll either need to fix the webservice to work fully with unicode or you'll need to convert the string retrieved from the database into an encoding your webservice can work with. Take a look at the various encoding classes under System.Text.
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011