I wish to create a table in which field contents may be in any of the
following languages: English, Greek and Chinese.
Which architecture/structure do you suggest I use?
Should I perhaps split this into 3 tables each one with different
collations? Or would it be best to set the table to unicode? Or is
there a better option you think? 8 3660
On 20 Jan 2007 12:06:16 -0800, "Denis" <k9******@hotmail.comwrote:
>I wish to create a table in which field contents may be in any of the following languages: English, Greek and Chinese.
Which architecture/structure do you suggest I use?
Should I perhaps split this into 3 tables each one with different collations? Or would it be best to set the table to unicode? Or is there a better option you think?
Sounds like a perfect situation for UNICODE, a two-byte character set
that works with virtually any and everylanguage. Instead of char and
varchar, use Nchar and Nvarchar.
Roy Harvey
Beacon Falls, CT
Thank you for your reply.
That would mean though that the database would be double the size.
Right? And of course the nvarchat field can have up to 4000
characterts. Correct?
Finally, are you sure that both Greek and Chinese are supported in
Unicode? I checked and Greek seems ok, but Chinese...I am not so
sure. Does anyone know?
Denis wrote:
Finally, are you sure that both Greek and Chinese are supported in
Unicode? I checked and Greek seems ok, but Chinese...I am not so
sure. Does anyone know?
http://en.wikipedia.org/wiki/Unicode indicates that Chinese is
supported, though there's some debate over the details.
On 20 Jan 2007 17:10:21 -0800, "Denis" <k9******@hotmail.comwrote:
>Thank you for your reply.
That would mean though that the database would be double the size. Right? And of course the nvarchat field can have up to 4000 characterts. Correct?
The char and varchar columns would double in size, yes. If you have
three such diverse languages to support that seems (to me) to be a
small price to pay.
Yes, the maximum column width would be reduced to 4000 characters. If
you are using SQL Server 2005 you have the alternative of
NVARCHAR(max).
>Finally, are you sure that both Greek and Chinese are supported in Unicode? I checked and Greek seems ok, but Chinese...I am not so sure. Does anyone know?
I am confident that Chinese support in UNICODE is at least as good as
Chinese support in any single-byte code page / collation.
Roy Harvey
Beacon Falls, CT
Actually I just read somewhere that you an actually define different
collations for different columns. Have you heard anything about that?
If that is true then I could simply stick to a default collation and
only put the chinese or greek collation on some of the columns only.
what do you think?
Yes, you can control the collation at the column level. It is all in
the Books On Line. That requires either three columns instead of
one, or three tables instead of one, with the corresponding changes to
the application to work that way, but it certainly will work. Unicode
nchar and nvarchar are also at the column level, and perhaps would
allow the application to be a bit simpler as there would only be one
version of each column in one version of the table.
Good luck!
Roy
On 22 Jan 2007 04:59:47 -0800, "Denis" <k9******@hotmail.comwrote:
>Actually I just read somewhere that you an actually define different collations for different columns. Have you heard anything about that?
If that is true then I could simply stick to a default collation and only put the chinese or greek collation on some of the columns only. what do you think?
Yes, you can control the collation at the column level. It is all in
the Books On Line. That requires either three columns instead of
one, or three tables instead of one, with the corresponding changes to
the application to work that way, but it certainly will work. Unicode
nchar and nvarchar are also at the column level, and perhaps would
allow the application to be a bit simpler as there would only be one
version of each column in one version of the table.
thank you for your prompt reply.
What do you mean it "requires either three columns" ? I didn;t come
across any such info. What do you mean exactly?
what I want to do is the following:
TABLE A
---------------
Col1 (English) , Col2(Greek) , Col3 (Chinese)
where....
English: Default Collation
Greek: GREEK Collation
English: CHINESE Collation (or Unicode)
Since I can define collation for the 3 different columns, The question
is: Do i define the chinese/greek columns as UNICODE, or as Chinese
& Greek respectively? I was thinking the later, because the data
will take up less space and I will also have more room in the fields.
What do you think?
On 22 Jan 2007 06:53:36 -0800, "Denis" <k9******@hotmail.comwrote:
>What do you mean it "requires either three columns" ? I didn;t come across any such info. What do you mean exactly?
If you want three different languages, without using UNICODE they have
to go into different columns or tables. Three languages, three
columns.
>what I want to do is the following:
TABLE A ---------------
Col1 (English) , Col2(Greek) , Col3 (Chinese)
Three columns.
>where.... English: Default Collation Greek: GREEK Collation English: CHINESE Collation (or Unicode)
I assume that last line was supposed to say Chinese: CHINESE.
>Since I can define collation for the 3 different columns, The question is: Do i define the chinese/greek columns as UNICODE, or as Chinese & Greek respectively? I was thinking the later, because the data will take up less space and I will also have more room in the fields. What do you think?
If you need English AND Greek AND Chinese, all at the same time, you
might as well use the language specific collations if they have what
you need. If you only need one language on any single row, just using
one column with Unicode will cover all three languages along with
countless others.
One other reason for using Unicode would be that if a fourth (or fifth
or sixth) language becomes necessary there are no database changes.
Roy Harvey
Beacon Falls, CT This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ed |
last post by:
I want to create a multilingual website in ASP. Is the Dictionary object
created with the application-level scope the way to go?
|
by: Prasad |
last post by:
Hi
I am working on a multilingual asp page. with sql server 2000 as a backend and IIS 5. When I enter japanese charecters in the text boxes on the page, they are getting stored as ??????? in the...
|
by: David Winter |
last post by:
As a technical author and translator, I am highly interested in single
source/multi format publishing. Meaning: I'd like to keep manuals,
technical specifications etc. in multiple languages...
|
by: charliewest |
last post by:
Building Multilingual Portal
I have been assigned a new project to build a multilingual portal using ASP
and/or ASP.NET and the expected Microsoft technologies including ADO and SQL
Server 2000....
|
by: kpub |
last post by:
Hi,
I'm new to SQL/PostgreSQL programming so forgive me if my questions are
to dumb?
I'm designing a multilingual db and I don't know if I'm on the right track.
Please advise.
The basic...
|
by: J?rg Keller |
last post by:
Hi all
I have to localize an Access 2002 application: The application using
several form, tables etc. is currently only in English. Now the
frontend has to be bilingual, so the user can choose...
|
by: JoanneC |
last post by:
When developing dynamic web content for the global market place using
ASP.NET, VB.NET and MS-Access, why should one install MS-Windows 2000
Server (mulitlanguage/multilingual), and is it necessary...
|
by: JoanneC |
last post by:
When developing dynamic web content for the global market place using
ASP.NET, VB.NET and MS-Access, why should one install MS-Windows 2000
Server (mulitlanguage/multilingual), and is it necessary...
|
by: Jim Adams |
last post by:
Anyone have any insights into this?
I'm planning an upgrade to an existing ASP.Net project to support
multiple display languages (e.g. English, Spanish, ...).
I'd like to use a solution that...
|
by: Luc The Perverse |
last post by:
Hello! I am looking for a good way to make an application multilingual.
Danish/English for now (but I don't want to preclude more than two languages
eventually) Every dialog will have an option...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |