Groups | Blog | Home
all groups > dotnet internationalization > october 2004 >

dotnet internationalization : WebService, DataSet, different regional settings


Andreas Pircher
10/13/2004 9:00:50 AM
Some time ago I´ve developed a smartclient. It sends some parameters
(item-id, amount) to a webservice-method that returns a dataset with
information from the database about a certain item. Everything worked well
until the client was first used in another country with other regional
settings.

The problem is the following:
The returned dataset contains a table that contains a column with a value of
type double. The WebService-Method puts 10.34 into the table and returns it -
clients in our region receive 10.34 clients with another decimal separator
receive 1034 . Of course this is because the dot is interpreted as
GroupSeparator.

How can I work around this. I know about using NumberFormatInfo and so on -
but here I have a - public ItemDataSet GetItemInfo(String ItemID, double
Amount) {...} - on the one side, and a - ItemDataSet tmp =
proxy.GetItemInfo(...) - on the other. The problem seems to be under the
hood.

--
luxbox.net, Andreas Pircher
Andreas Pircher
10/18/2004 1:29:03 AM
Meanwhile I solved it myself. I set the culture of the threads that call
WebServices to the culture that the server uses - Now doubles in DataSets
AddThis Social Bookmark Button