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 / ADO.NET / March 2007

Tip: Looking for answers? Try searching our database.

Can not update text with Polish characters.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eurofirms. - 28 Mar 2007 13:02 GMT
I have a table where there are translations of various strings into different
languages. I need to load this strings and allow some users to modify and
update the strings back into the table.

When I load a text written in polish, the application loads the data
correctly and the user see all the characters in polish, but when the
application writes back the string into the database, a word like wysokośći
is converted into wysokosci.

I tried to change the culture of the thread that executes the update to
pl-PL (Polish) but the bug remains. Is there some way I can tell ADO.NET to
preserve the language of the string when updated to the table?
Cor Ligthert [MVP] - 29 Mar 2007 06:30 GMT
At least needs all the systems the right codepage, it seems the clients have
them while the server has another one.

http://www.microsoft.com/globaldev/reference/sbcs/1250.mspx

from not so a small man

Cor

>I have a table where there are translations of various strings into
>different
[quoted text clipped - 11 lines]
> to
> preserve the language of the string when updated to the table?
Eurofirms. - 29 Mar 2007 08:54 GMT
I don't think that the problem is the codepage. If I enter the text directly
to the Database through enterprise manager, the text is correctly saved. The
problem appears when I try to update the text through ADO.NET, so I think the
problem is in the ADO connection.

Is there some parameter or procedure to define the language used in the
connection?.
If I debug the program, the string is correctly passed through all levels to
the SQLCommand.ExecuteNonQuery() procedure, but I can’t debug at this point.

> At least needs all the systems the right codepage, it seems the clients have
> them while the server has another one.
[quoted text clipped - 20 lines]
> > to
> > preserve the language of the string when updated to the table?
Milosz Skalecki [MCAD] - 29 Mar 2007 20:58 GMT
Uszanowanie ;-)

Run SQL Server Profiler and see what is being executed. It should help you
to identify on which side (ADO.NET or SQL collation problems) causes the
problem(more likely).

Hope this helps
Signature

Milosz

> I don't think that the problem is the codepage. If I enter the text directly
> to the Database through enterprise manager, the text is correctly saved. The
[quoted text clipped - 30 lines]
> > > to
> > > preserve the language of the string when updated to the table?

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.