Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 10th, 2004, 02:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default chinese alphabet

Hi there

How can I input Chinese symbols into a SQL database?

Basically a client has asked me to add a section in Chinese (not written by me!) to a predominantly English site stating that the company in question does alot of business with China and encourages it through the website; so what I need to do is add a little bit of Chinese text to the database.

Also, will it display on the outputted page correctly??

Any ideas?

thanks

Adam

 
Old November 10th, 2004, 03:40 PM
Authorized User
 
Join Date: Apr 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This depends on the database you are using and the character set of the web site (among other things)...

Are you using SQL Server? Oracle? Something else?

What character set is the web site served in? What character set will the Chinese part be served in? While it is possible to serve the entire site using a Unicode character set, most sites choose to use a local character set for Asian viewers since a large chunk of the browsers in those markets don't support Unicode.

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
 
Old November 11th, 2004, 05:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

I'm using sql server 2000.

Do you think it might be best to write the chinese in graphic form then and pull it from the db as a graphic? that way it won't be changed depending on the local character set.

 
Old November 11th, 2004, 01:37 PM
Authorized User
 
Join Date: Apr 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A graphic of the text would work. The big technical problem would be page size and load time. You would also prevent people from being able to do something useful with the text (i.e. cut-and-paste contact information). You may also end up sending a message to potential customers if your website is seen to support Chinese poorly.

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
 
Old November 16th, 2004, 04:16 AM
Authorized User
 
Join Date: Nov 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Moreover, the support of the progarmming language is also a concern as some language restrict the use of non-english string in its design.....






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chinese characters rajanikrishna ASP.NET 1.0 and 1.1 Basics 1 April 25th, 2006 10:25 PM
I'm chinese ChinaWolf C# 3 January 23rd, 2006 04:32 AM
How to create a random alphabet? gefferye C# 1 October 29th, 2005 10:33 PM
i'm chinese wsaspx General .NET 1 April 6th, 2005 07:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.