Monday, March 26, 2012
Polish Translation
I have Win2K, I'm trying to transfer some Polish translations from an access
mdb into SQL Server 2000, the Polish translations never make it over. Is
there an update for Win2K or SQL Server available that I need?
--
mdHi michele
What do you mean by not make it? Is the data there but incorrect or not
there at all? Do you have any error messages? Is the collation correct on
your SQL Server instance?
John
"michele" wrote:
> If anyone can help...
> I have Win2K, I'm trying to transfer some Polish translations from an access
> mdb into SQL Server 2000, the Polish translations never make it over. Is
> there an update for Win2K or SQL Server available that I need?
> --
> md|||John Bell
What I meant by "not making it over" is this:
In my access db I have the Polish alphabet which has these special
characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
into the SQL Server. When the letters get to the SQL Server, I just have L A
E Z.
After further digging yesterday, I discovered that Polish is an ISO-8859-2
language and my SQL Server is configured for ISO-8859-1 languages. So now, I
guess, I need to configure SQL for the 8859-2. Any suggestions for that?
Michele
--
md
"John Bell" wrote:
> Hi michele
> What do you mean by not make it? Is the data there but incorrect or not
> there at all? Do you have any error messages? Is the collation correct on
> your SQL Server instance?
> John
> "michele" wrote:
> > If anyone can help...
> > I have Win2K, I'm trying to transfer some Polish translations from an access
> > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > there an update for Win2K or SQL Server available that I need?
> > --
> > md|||Hi michele
My guess is that you need double byte characters rather than the single ones
you have therefore using nvarchar and nchar datatypes may cure this, although
if the transfer is (also) forcing single byte characters it may still be a
problem.
You may want to look at:
http://msdn2.microsoft.com/en-us/library/ms190245.aspx
http://msdn2.microsoft.com/en-us/library/bb330962.aspx
http://msdn2.microsoft.com/en-us/library/ms143508.aspx
John
"michele" wrote:
> John Bell
> What I meant by "not making it over" is this:
> In my access db I have the Polish alphabet which has these special
> characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> into the SQL Server. When the letters get to the SQL Server, I just have L A
> E Z.
> After further digging yesterday, I discovered that Polish is an ISO-8859-2
> language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> Michele
> --
> md
>
> "John Bell" wrote:
> > Hi michele
> >
> > What do you mean by not make it? Is the data there but incorrect or not
> > there at all? Do you have any error messages? Is the collation correct on
> > your SQL Server instance?
> >
> > John
> >
> > "michele" wrote:
> >
> > > If anyone can help...
> > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > there an update for Win2K or SQL Server available that I need?
> > > --
> > > md|||Wouldnt specific collation at the Column level help as opposed to configuring
the entire SQL for the 8859-2?
Thanks,
rgn
"michele" wrote:
> John Bell
> What I meant by "not making it over" is this:
> In my access db I have the Polish alphabet which has these special
> characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> into the SQL Server. When the letters get to the SQL Server, I just have L A
> E Z.
> After further digging yesterday, I discovered that Polish is an ISO-8859-2
> language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> Michele
> --
> md
>
> "John Bell" wrote:
> > Hi michele
> >
> > What do you mean by not make it? Is the data there but incorrect or not
> > there at all? Do you have any error messages? Is the collation correct on
> > your SQL Server instance?
> >
> > John
> >
> > "michele" wrote:
> >
> > > If anyone can help...
> > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > there an update for Win2K or SQL Server available that I need?
> > > --
> > > md|||Good thought - so I tried it - in the design view I changed my translation
column, collation setting to SQL_Polish_CPI1250_CI_AS. But when I run my
script to put the Polish translation into SQL, I lose the translation ( Å?
becomes L )
I'm working on my script now...
--
md
"rgn" wrote:
> Wouldnt specific collation at the Column level help as opposed to configuring
> the entire SQL for the 8859-2?
> Thanks,
> rgn
> "michele" wrote:
> > John Bell
> > What I meant by "not making it over" is this:
> > In my access db I have the Polish alphabet which has these special
> > characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> > into the SQL Server. When the letters get to the SQL Server, I just have L A
> > E Z.
> > After further digging yesterday, I discovered that Polish is an ISO-8859-2
> > language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> > guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> > Michele
> > --
> > md
> >
> >
> > "John Bell" wrote:
> >
> > > Hi michele
> > >
> > > What do you mean by not make it? Is the data there but incorrect or not
> > > there at all? Do you have any error messages? Is the collation correct on
> > > your SQL Server instance?
> > >
> > > John
> > >
> > > "michele" wrote:
> > >
> > > > If anyone can help...
> > > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > > there an update for Win2K or SQL Server available that I need?
> > > > --
> > > > md|||Hi michele
It could be the application which is not displaying the value correctly,
have you checked the ascii value?
John
"michele" wrote:
> Good thought - so I tried it - in the design view I changed my translation
> column, collation setting to SQL_Polish_CPI1250_CI_AS. But when I run my
> script to put the Polish translation into SQL, I lose the translation ( Å?
> becomes L )
> I'm working on my script now...
> --
> md
>
> "rgn" wrote:
> > Wouldnt specific collation at the Column level help as opposed to configuring
> > the entire SQL for the 8859-2?
> >
> > Thanks,
> > rgn
> >
> > "michele" wrote:
> >
> > > John Bell
> > > What I meant by "not making it over" is this:
> > > In my access db I have the Polish alphabet which has these special
> > > characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> > > into the SQL Server. When the letters get to the SQL Server, I just have L A
> > > E Z.
> > > After further digging yesterday, I discovered that Polish is an ISO-8859-2
> > > language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> > > guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> > > Michele
> > > --
> > > md
> > >
> > >
> > > "John Bell" wrote:
> > >
> > > > Hi michele
> > > >
> > > > What do you mean by not make it? Is the data there but incorrect or not
> > > > there at all? Do you have any error messages? Is the collation correct on
> > > > your SQL Server instance?
> > > >
> > > > John
> > > >
> > > > "michele" wrote:
> > > >
> > > > > If anyone can help...
> > > > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > > > there an update for Win2K or SQL Server available that I need?
> > > > > --
> > > > > md|||I got it working. I had to add the letter "N" before my data and it's
transferring correctly. Thanks for all the feedback, it has been helpful.
--
md
"John Bell" wrote:
> Hi michele
> It could be the application which is not displaying the value correctly,
> have you checked the ascii value?
> John
> "michele" wrote:
> > Good thought - so I tried it - in the design view I changed my translation
> > column, collation setting to SQL_Polish_CPI1250_CI_AS. But when I run my
> > script to put the Polish translation into SQL, I lose the translation ( Å?
> > becomes L )
> > I'm working on my script now...
> > --
> > md
> >
> >
> > "rgn" wrote:
> >
> > > Wouldnt specific collation at the Column level help as opposed to configuring
> > > the entire SQL for the 8859-2?
> > >
> > > Thanks,
> > > rgn
> > >
> > > "michele" wrote:
> > >
> > > > John Bell
> > > > What I meant by "not making it over" is this:
> > > > In my access db I have the Polish alphabet which has these special
> > > > characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> > > > into the SQL Server. When the letters get to the SQL Server, I just have L A
> > > > E Z.
> > > > After further digging yesterday, I discovered that Polish is an ISO-8859-2
> > > > language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> > > > guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> > > > Michele
> > > > --
> > > > md
> > > >
> > > >
> > > > "John Bell" wrote:
> > > >
> > > > > Hi michele
> > > > >
> > > > > What do you mean by not make it? Is the data there but incorrect or not
> > > > > there at all? Do you have any error messages? Is the collation correct on
> > > > > your SQL Server instance?
> > > > >
> > > > > John
> > > > >
> > > > > "michele" wrote:
> > > > >
> > > > > > If anyone can help...
> > > > > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > > > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > > > > there an update for Win2K or SQL Server available that I need?
> > > > > > --
> > > > > > md|||Hi michele
The prefix character N denotes it is Unicode data when you have an constant.
See Books online topic "Using Unicode Data" for more.
John
"michele" wrote:
> I got it working. I had to add the letter "N" before my data and it's
> transferring correctly. Thanks for all the feedback, it has been helpful.
> --
> md
>
> "John Bell" wrote:
> > Hi michele
> >
> > It could be the application which is not displaying the value correctly,
> > have you checked the ascii value?
> >
> > John
> >
> > "michele" wrote:
> >
> > > Good thought - so I tried it - in the design view I changed my translation
> > > column, collation setting to SQL_Polish_CPI1250_CI_AS. But when I run my
> > > script to put the Polish translation into SQL, I lose the translation ( Å?
> > > becomes L )
> > > I'm working on my script now...
> > > --
> > > md
> > >
> > >
> > > "rgn" wrote:
> > >
> > > > Wouldnt specific collation at the Column level help as opposed to configuring
> > > > the entire SQL for the 8859-2?
> > > >
> > > > Thanks,
> > > > rgn
> > > >
> > > > "michele" wrote:
> > > >
> > > > > John Bell
> > > > > What I meant by "not making it over" is this:
> > > > > In my access db I have the Polish alphabet which has these special
> > > > > characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> > > > > into the SQL Server. When the letters get to the SQL Server, I just have L A
> > > > > E Z.
> > > > > After further digging yesterday, I discovered that Polish is an ISO-8859-2
> > > > > language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> > > > > guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> > > > > Michele
> > > > > --
> > > > > md
> > > > >
> > > > >
> > > > > "John Bell" wrote:
> > > > >
> > > > > > Hi michele
> > > > > >
> > > > > > What do you mean by not make it? Is the data there but incorrect or not
> > > > > > there at all? Do you have any error messages? Is the collation correct on
> > > > > > your SQL Server instance?
> > > > > >
> > > > > > John
> > > > > >
> > > > > > "michele" wrote:
> > > > > >
> > > > > > > If anyone can help...
> > > > > > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > > > > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > > > > > there an update for Win2K or SQL Server available that I need?
> > > > > > > --
> > > > > > > md|||Did you have to change the collation setting anywhere or adding N itself
addressed the issue?
"michele" wrote:
> I got it working. I had to add the letter "N" before my data and it's
> transferring correctly. Thanks for all the feedback, it has been helpful.
> --
> md
>
> "John Bell" wrote:
> > Hi michele
> >
> > It could be the application which is not displaying the value correctly,
> > have you checked the ascii value?
> >
> > John
> >
> > "michele" wrote:
> >
> > > Good thought - so I tried it - in the design view I changed my translation
> > > column, collation setting to SQL_Polish_CPI1250_CI_AS. But when I run my
> > > script to put the Polish translation into SQL, I lose the translation ( Å?
> > > becomes L )
> > > I'm working on my script now...
> > > --
> > > md
> > >
> > >
> > > "rgn" wrote:
> > >
> > > > Wouldnt specific collation at the Column level help as opposed to configuring
> > > > the entire SQL for the 8859-2?
> > > >
> > > > Thanks,
> > > > rgn
> > > >
> > > > "michele" wrote:
> > > >
> > > > > John Bell
> > > > > What I meant by "not making it over" is this:
> > > > > In my access db I have the Polish alphabet which has these special
> > > > > characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> > > > > into the SQL Server. When the letters get to the SQL Server, I just have L A
> > > > > E Z.
> > > > > After further digging yesterday, I discovered that Polish is an ISO-8859-2
> > > > > language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> > > > > guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> > > > > Michele
> > > > > --
> > > > > md
> > > > >
> > > > >
> > > > > "John Bell" wrote:
> > > > >
> > > > > > Hi michele
> > > > > >
> > > > > > What do you mean by not make it? Is the data there but incorrect or not
> > > > > > there at all? Do you have any error messages? Is the collation correct on
> > > > > > your SQL Server instance?
> > > > > >
> > > > > > John
> > > > > >
> > > > > > "michele" wrote:
> > > > > >
> > > > > > > If anyone can help...
> > > > > > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > > > > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > > > > > there an update for Win2K or SQL Server available that I need?
> > > > > > > --
> > > > > > > md|||I had done both: changed the collation setting and added the N. I just did a
quick test and set the collation setting back to <database default> and it
still worked. I will do further testing and report back if I find anything
different.
--
md
"rgn" wrote:
> Did you have to change the collation setting anywhere or adding N itself
> addressed the issue?
> "michele" wrote:
> > I got it working. I had to add the letter "N" before my data and it's
> > transferring correctly. Thanks for all the feedback, it has been helpful.
> > --
> > md
> >
> >
> > "John Bell" wrote:
> >
> > > Hi michele
> > >
> > > It could be the application which is not displaying the value correctly,
> > > have you checked the ascii value?
> > >
> > > John
> > >
> > > "michele" wrote:
> > >
> > > > Good thought - so I tried it - in the design view I changed my translation
> > > > column, collation setting to SQL_Polish_CPI1250_CI_AS. But when I run my
> > > > script to put the Polish translation into SQL, I lose the translation ( Å?
> > > > becomes L )
> > > > I'm working on my script now...
> > > > --
> > > > md
> > > >
> > > >
> > > > "rgn" wrote:
> > > >
> > > > > Wouldnt specific collation at the Column level help as opposed to configuring
> > > > > the entire SQL for the 8859-2?
> > > > >
> > > > > Thanks,
> > > > > rgn
> > > > >
> > > > > "michele" wrote:
> > > > >
> > > > > > John Bell
> > > > > > What I meant by "not making it over" is this:
> > > > > > In my access db I have the Polish alphabet which has these special
> > > > > > characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> > > > > > into the SQL Server. When the letters get to the SQL Server, I just have L A
> > > > > > E Z.
> > > > > > After further digging yesterday, I discovered that Polish is an ISO-8859-2
> > > > > > language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> > > > > > guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> > > > > > Michele
> > > > > > --
> > > > > > md
> > > > > >
> > > > > >
> > > > > > "John Bell" wrote:
> > > > > >
> > > > > > > Hi michele
> > > > > > >
> > > > > > > What do you mean by not make it? Is the data there but incorrect or not
> > > > > > > there at all? Do you have any error messages? Is the collation correct on
> > > > > > > your SQL Server instance?
> > > > > > >
> > > > > > > John
> > > > > > >
> > > > > > > "michele" wrote:
> > > > > > >
> > > > > > > > If anyone can help...
> > > > > > > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > > > > > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > > > > > > there an update for Win2K or SQL Server available that I need?
> > > > > > > > --
> > > > > > > > md|||Hi Michele
Unicode data is not depent on the collation.
John
"michele" wrote:
> I had done both: changed the collation setting and added the N. I just did a
> quick test and set the collation setting back to <database default> and it
> still worked. I will do further testing and report back if I find anything
> different.
> --
> md
>
> "rgn" wrote:
> > Did you have to change the collation setting anywhere or adding N itself
> > addressed the issue?
> >
> > "michele" wrote:
> >
> > > I got it working. I had to add the letter "N" before my data and it's
> > > transferring correctly. Thanks for all the feedback, it has been helpful.
> > > --
> > > md
> > >
> > >
> > > "John Bell" wrote:
> > >
> > > > Hi michele
> > > >
> > > > It could be the application which is not displaying the value correctly,
> > > > have you checked the ascii value?
> > > >
> > > > John
> > > >
> > > > "michele" wrote:
> > > >
> > > > > Good thought - so I tried it - in the design view I changed my translation
> > > > > column, collation setting to SQL_Polish_CPI1250_CI_AS. But when I run my
> > > > > script to put the Polish translation into SQL, I lose the translation ( Å?
> > > > > becomes L )
> > > > > I'm working on my script now...
> > > > > --
> > > > > md
> > > > >
> > > > >
> > > > > "rgn" wrote:
> > > > >
> > > > > > Wouldnt specific collation at the Column level help as opposed to configuring
> > > > > > the entire SQL for the 8859-2?
> > > > > >
> > > > > > Thanks,
> > > > > > rgn
> > > > > >
> > > > > > "michele" wrote:
> > > > > >
> > > > > > > John Bell
> > > > > > > What I meant by "not making it over" is this:
> > > > > > > In my access db I have the Polish alphabet which has these special
> > > > > > > characters: Å? Ä? Ä? Å» I have a vb script that takes my access data and puts
> > > > > > > into the SQL Server. When the letters get to the SQL Server, I just have L A
> > > > > > > E Z.
> > > > > > > After further digging yesterday, I discovered that Polish is an ISO-8859-2
> > > > > > > language and my SQL Server is configured for ISO-8859-1 languages. So now, I
> > > > > > > guess, I need to configure SQL for the 8859-2. Any suggestions for that?
> > > > > > > Michele
> > > > > > > --
> > > > > > > md
> > > > > > >
> > > > > > >
> > > > > > > "John Bell" wrote:
> > > > > > >
> > > > > > > > Hi michele
> > > > > > > >
> > > > > > > > What do you mean by not make it? Is the data there but incorrect or not
> > > > > > > > there at all? Do you have any error messages? Is the collation correct on
> > > > > > > > your SQL Server instance?
> > > > > > > >
> > > > > > > > John
> > > > > > > >
> > > > > > > > "michele" wrote:
> > > > > > > >
> > > > > > > > > If anyone can help...
> > > > > > > > > I have Win2K, I'm trying to transfer some Polish translations from an access
> > > > > > > > > mdb into SQL Server 2000, the Polish translations never make it over. Is
> > > > > > > > > there an update for Win2K or SQL Server available that I need?
> > > > > > > > > --
> > > > > > > > > md|||As I remember, such a translation occuring on the client side (MS SQL OLEDB),
not server. In turn, OLEDB gets settings from the computer Regional Settings
in Control Panel.|||Hi
Unicode values are constant. From BOL:
The Unicode specification defines a single encoding scheme for most
characters widely used in businesses around the world. All computers
consistently translate the bit patterns in Unicode data into characters using
the single Unicode specification.
I believe if you are using non-Unicode data that is collation specific the
locales available may affect what is being displayed.
John
"Dmitrij Siemieniako" wrote:
> As I remember, such a translation occuring on the client side (MS SQL OLEDB),
> not server. In turn, OLEDB gets settings from the computer Regional Settings
> in Control Panel.
Polish characters problem.
First off all I am not SQL expert so pls forgive me if something will be
unclear.
I have old SQL 7.0 with Code page CP1252 and database application on it with
polish characters.
I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
database) and my application do not see polish characters.
Any idea?
Artur
Hi
If you had code page 1250 then I would expect a Polish collation to be used.
Extended data would be lost if you switched from 1250 to 1252. Therefore you
may want to try a Polish collation for the destination database.
How did you convert the database?
John
"arti" <artipp@.op.pl> wrote in message news:cll8au$odf$1@.news.onet.pl...
> Hi,
> First off all I am not SQL expert so pls forgive me if something will be
> unclear.
>
> I have old SQL 7.0 with Code page CP1252 and database application on it
with
> polish characters.
> I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
> database) and my application do not see polish characters.
> Any idea?
>
> Artur
>
Polish characters problem.
First off all I am not SQL expert so pls forgive me if something will be
unclear.
I have old SQL 7.0 with Code page CP1252 and database application on it with
polish characters.
I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
database) and my application do not see polish characters.
Any idea?
ArturHi
If you had code page 1250 then I would expect a Polish collation to be used.
Extended data would be lost if you switched from 1250 to 1252. Therefore you
may want to try a Polish collation for the destination database.
How did you convert the database?
John
"arti" <artipp@.op.pl> wrote in message news:cll8au$odf$1@.news.onet.pl...
> Hi,
> First off all I am not SQL expert so pls forgive me if something will be
> unclear.
>
> I have old SQL 7.0 with Code page CP1252 and database application on it
with
> polish characters.
> I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
> database) and my application do not see polish characters.
> Any idea?
>
> Artur
>sql
Polish characters problem.
First off all I am not SQL expert so pls forgive me if something will be
unclear.
I have old SQL 7.0 with Code page CP1252 and database application on it with
polish characters.
I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
database) and my application do not see polish characters.
Any idea?
ArturHi
If you had code page 1250 then I would expect a Polish collation to be used.
Extended data would be lost if you switched from 1250 to 1252. Therefore you
may want to try a Polish collation for the destination database.
How did you convert the database?
John
"arti" <artipp@.op.pl> wrote in message news:cll8au$odf$1@.news.onet.pl...
> Hi,
> First off all I am not SQL expert so pls forgive me if something will be
> unclear.
>
> I have old SQL 7.0 with Code page CP1252 and database application on it
with
> polish characters.
> I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
> database) and my application do not see polish characters.
> Any idea?
>
> Artur
>
Polish characters displayed incorrect after post
I have a SQL server 2000 running on an english win2000 workstation. In a
database I have a table where one varchar column is set to polish
collation.
Regional settings for the system is polish.
Data entered in a client application looks fine until they are posted.
When reading the data with the client application, the special polish
characters are incorrect, they appears as e.g. '1' and '3'.
The strange thing is that when I use query analyzer to look at the data,
then the polish characters appears as they should!
My client app use ADO, the SQLOLEDB provider. I have tried to use
'Locale Identifier=xxxx' in the connection string, without any luck.
If I change the column to be nvarchar instead of varchar, then it work,
but unfortunately, this solution is not an option. This should work on
varchar columns, since polish is not multibyte.
What am I doing wrong??
TIA
Best regards
Philip KofoedPhilip Kofoed (kofoed@.tiscali.dk) writes:
> I have a SQL server 2000 running on an english win2000 workstation. In a
> database I have a table where one varchar column is set to polish
> collation.
> Regional settings for the system is polish.
> Data entered in a client application looks fine until they are posted.
> When reading the data with the client application, the special polish
> characters are incorrect, they appears as e.g. '1' and '3'.
> The strange thing is that when I use query analyzer to look at the data,
> then the polish characters appears as they should!
> My client app use ADO, the SQLOLEDB provider. I have tried to use
> 'Locale Identifier=xxxx' in the connection string, without any luck.
> If I change the column to be nvarchar instead of varchar, then it work,
> but unfortunately, this solution is not an option. This should work on
> varchar columns, since polish is not multibyte.
You say that the regional settings of the system are Polish, but which
system are you talking about?
What are the regional settings of the machine where the client application
runs? If that machine has for instance Danish settings, the Polish
characters will indeed be converted.
Could you give more examples on how the various Polish characters are
displayed as? How is a-ogonek displayed, c-acute, etc?
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||Erland Sommarskog wrote:
> You say that the regional settings of the system are Polish, but which
> system are you talking about?
The PC where _both_ the sql server and the client app runs, client app is
running on the same PC as the sql server. Windows is english, but with polish
regional settings. Collation of the varchar column where I'm saving the polish
string is polish.
> Could you give more examples on how the various Polish characters are
> displayed as? How is a-ogonek displayed, c-acute, etc?
I have placed some screenshots here:
http://www.provosoft.com/sql/sql.html
Data are stored correct, since query analyzer reads and displays data correct.
So the problem must be somewhere else.
Best regards
Philip Kofoed|||Philip Kofoed (kofoed@.tiscali.dk) writes:
> The PC where _both_ the sql server and the client app runs, client app
> is running on the same PC as the sql server. Windows is english, but
> with polish regional settings. Collation of the varchar column where I'm
> saving the polish string is polish.
But is Polish the default locale for the server? Or is it just the
setting for the user you are logged in as?
And what value do you have in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Nls\CodePage\ACP?
Does it say 1252 or 1250?
Looking at the examples, it seems clear that when the data is received
from SQL Server is taken to be Latin-1 data, and then there is a
conversion to CP1250, using fallback characters. For instance L-slash
is 163, which is the pound sign in Latin-1, whence the L. l-slash is
179 in Latin-2, while in Latin-1 this code point is 3-superscript, so
3 is used as the fallback.
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||> But is Polish the default locale for the server? Or is it just the
> setting for the user you are logged in as?
Default locale is Polish. 'Language settings for the system' set to Central
Europe (default), 'Settings for current user' set to Polish locale.
> And what value do you have in
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Nls\CodePage\ACP?
> Does it say 1252 or 1250?
1250, i.e eastern europe.
I just tried running my client app on a polish win XP. Client app then
connects to sql server running on english win 2000, default locale polish.
Characters are _still_ corrupted??
Query Analyzer still displays characters correct.
I'm going to leave this problem, and send it back the support staff. Thank you
for your time and effort, Erland!
Best regards
Philip Kofoed|||Philip Kofoed (kofoed@.tiscali.dk) writes:
>> But is Polish the default locale for the server? Or is it just the
>> setting for the user you are logged in as?
> Default locale is Polish. 'Language settings for the system' set to
> Central Europe (default), 'Settings for current user' set to Polish
> locale.
The last straw:
SELECT serverproperty('Collation'),
databasepropertyex('yourdb', 'Collation')
And exactly how do the queries submitted by the application look like?
I refuse to believe that the language of Windows should matter.
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||Hi Erland,
> I refuse to believe that the language of Windows should matter.
I have found out that if I create a new database with polish collation
then it works on english windows then regional settings is polish.
If collation of the DB isn't polish, but a column has polish collation,
then characters read from that column is incorrect.
Our installation crew that installed the original server in Poland,
installed it with Latin collation, realized their mistake, and used DTS to
copy the DB to a new DB with polish collation, and characters in the new
DB was dispalyed incorrect. I haven't tested this last scenario, because
our problem is solved when using polish collation when creating the DB.
Thanks again for all your help! :)
Best regards
Philip Kofoed|||Philip Kofoed (kofoed@.tiscali.dk) writes:
> I have found out that if I create a new database with polish collation
> then it works on english windows then regional settings is polish.
> If collation of the DB isn't polish, but a column has polish collation,
> then characters read from that column is incorrect.
Don't really see why this is happening if you are getting data directly
from the table. But if you for some reason first get data into local
variables, it's obvious, as local variables always have the collation
of the database.
Anyway, you got it working and that's the main thing.
--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp