Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / March 2006

Tip: Looking for answers? Try searching our database.

unicode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tvin - 15 Mar 2006 22:36 GMT
I have a problem: I need to convert a standard string to a
unicode string and want to send this unicode-string to a
Stored Procedure in SQL-Server. How do I convert a usual
String to a unicode string? When I use a bounded field and
save it directly to the database, then it works.

Any idea?
Klaus H. Probst - 16 Mar 2006 05:12 GMT
Internally .NET strings are already Unicode. All you need to do is type the
stored procedure's parameter as nvarchar or nchar.

Signature

Klaus H. Probst, MVP
  http://www.simulplex.net/

>I have a problem: I need to convert a standard string to a
> unicode string and want to send this unicode-string to a
[quoted text clipped - 3 lines]
>
> Any idea?
tvin - 16 Mar 2006 07:23 GMT
hi klaus

> Internally .NET strings are already Unicode. All you need to do is type the
> stored procedure's parameter as nvarchar or nchar.
[quoted text clipped - 6 lines]
> >
> > Any idea?

my parameter is nvarchar,but my really problem is that the "standard string"
which i  brought it from utf-8 file,didn't convert correctly to unicode
string in .net
Adam May - 20 Mar 2006 00:46 GMT
Hi tvin,

Have a look at the GetBytes method of System.Text.UnicodeEncoding.

Adam

Signature

Adam May
Sydney, Australia
MCSD.Net

> hi klaus
>
[quoted text clipped - 12 lines]
> which i  brought it from utf-8 file,didn't convert correctly to unicode
> string in .net

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.