Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8602699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:08:53+00:00 2026-06-12T02:08:53+00:00

I am preparing a new database server, where I will migrate data from a

  • 0

I am preparing a new database server, where I will migrate data from a big, existing, multilingual database (mostly english/french/spanish text, rarely special characters from other languages for e.g. city names). It will be mostly used with PHP applications developed by me and my colleagues.

I have difficulties understanding all the characters sets issues, and I would like to make the right choice from the start.

From what I read, in order to support all Unicode characters, I should use UTF-8.

My Questions:

  1. Which characters set/collation should I set in MicroSoft SQL Server 2008 to obtain UTF-8? Is Latin1_general_CS_AS the right choice?

  2. Should I use this meta in my HTML pages?

    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8">
  3. Will there be characters that I won’t be able to support in my database, or that I will need to convert in some way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:08:55+00:00Added an answer on June 12, 2026 at 2:08 am

    Character set and collation are different things.

    SQL Server has no support for UTF-8. You should store your data as Unicode, which means that the column type should be NCHAR and NVARCHAR. You can choose any collation you like, because any collation you choose, it will be incorrect. Collation determines the way values are sorted and compared, not the encoding they are stored with (drivers interpret collation information as an encoding hint for non-Unicode types, but that is a different topic). As you are mixing various languages, there is no possible correct sorting order (ie. you application will suffer from the notorious Turkish I and Spanish ch sorting issues). However, this is in general not a big issue and users seldom notice it. Overall though, a Latin collation will probably be best.

    As for your return HTTP charset: you should put the charset you used to return the page as. What encoding SQL Server uses to store the data is completely irrelevant. A lot of developers run into issues here because they use a non-Unicode data type in SQL Server (ie. CHAR and VARCHAR) which results in many encoding incompatibilities in the returned HTTP data. Simply using Unicode column types will resolve most issues, as long as you don’t do anything stupid in your own application code (like trying to force an encoding).

    BTW, since you mention that most applications will be PHP, with PHP is likely you will need to convert the encoding from the SQL Server Unicode UCS-2 to your desired output format (UTF-8). Make sure you read Microsoft Drivers for PHP for SQL Server Unicode Support and Endianness and use the ucs-2le encoding for SQL Server data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am preparing a new database server, where I will migrate data from a
i am preparing myself for importing data from excel sheet to sql server 2005.I
In my project I'm currently preparing a step-by-step move from legacy code to new,
I'm currently in the process of preparing a new server to run our ASP.Net
I am preparing to update a live web server from PHP 5.2.12 to 5.3.5.
I am preparing to start on a new short-term contract (1-2 months) that involves
I have following code: //preparing DAO objects FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(test-context.xml); surveyDao =
While preparing to deploy a MongoDB powered site to a clients web server, their
I am preparing for GIS interview.I am looking for good ArcGIS Engine,ArcGIS Server and
i have created a simple database for inserting the list of data into my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.