Re: Combination of English and Chinese characters in Microsoft SQLServer 2000
- From: "newsqlserveruser" <trupti.pujara@xxxxxxxxx>
- Date: 23 Nov 2006 01:02:43 -0800
I ran the query as u suggested and the output for the binary string
shows as 3F for the Chinese characters. If that means there is a
problem in input, how do I go ahead from here?
On Nov 21, 9:17 pm, Erland Sommarskog <esq...@xxxxxxxxxxxxx> wrote:
newsqlserveruser (trupti.puj...@xxxxxxxxx) writes:
We have Microsoft SQL Server 2000 with Service Pack 3a installed. Into give exact advice.
one of our databases, we have a table REQ with one of the fields
COMMENT being defined as TEXT. Now, when we try to view the COMMENT
field, it shows us only English characters whereas the Chinese
characters are displayed as ?.
Is it possible to store both English and Chinese characters in the same
column of a table? If yes, then how?Yes, it's possible, but with the information you have given, it's difficult
First of all, which character set do you use for Chinese? Unicode? Big-5?
If you use Unicode, you should use ntext, if you use Big-5 or any other
non-Unicode character set, you should use text.
Next question is find out where things go wrong. Do something like:
SELECT substring(col, 1, 20), convert(binary(20), substring(col, 1, 20))
If there are question marks in the selected substring which should have
been Chinese characters, what do you see in their place in the binary
string? If you see 3F, the Chinese characters have been stored as ?, and
there is a problem on input. If you see the codes for the Chinese
characters, it's a display problem.
If it is an input problem, it would help to know who the characters enters
the database.
Disclaimer: I have no experience of working with Chinese on my own.
--
Erland Sommarskog, SQL Server MVP, esq...@xxxxxxxxxxxxx
Books Online for SQL Server 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online for SQL Server 2000 athttp://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: Combination of English and Chinese characters in Microsoft SQLServer 2000
- From: Erland Sommarskog
- Re: Combination of English and Chinese characters in Microsoft SQLServer 2000
- References:
- Combination of English and Chinese characters in Microsoft SQLServer 2000
- From: newsqlserveruser
- Re: Combination of English and Chinese characters in Microsoft SQLServer 2000
- From: Erland Sommarskog
- Combination of English and Chinese characters in Microsoft SQLServer 2000
- Prev by Date: Re: Copy/Paste behavior in SSMS
- Next by Date: Re: SQL 2205, Profiler and Deadlocks
- Previous by thread: Re: Combination of English and Chinese characters in Microsoft SQLServer 2000
- Next by thread: Re: Combination of English and Chinese characters in Microsoft SQLServer 2000
- Index(es):
Relevant Pages
|