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 6037991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:09:14+00:00 2026-05-23T06:09:14+00:00

I have searched the internet now for quite a while and found several bits

  • 0

I have searched the internet now for quite a while and found several bits but in total it’s still not working.

I’m using Microsoft SQL Server 2008 SP2 for a database in which I need to write either Khmer Unicode or English letters.

According to this Blog here: http://sochinda.wordpress.com/2009/10/03/khmer-unicode-on-sql-server/

It is said that I need to use the collation SQL_Latin1_General_CP850_BIN for Khmer Unicode AND datatypes NCHAR, NVARCHAR or NTEXT as they are unicode compatible.

When I use the following SQL statement:

use pis

INSERT INTO dbo.pmd (patient_code, last_name, first_name, age, sex, province, district, commune, village) VALUES ('0600-075D4-4AC8', 'ៃាំុំឌគៃុំាំឌ', 'ៃគុំដសហគៃុំះកឆញហេឆ', '2008', 'm', '060000', '060400', '060403', '06040304')

The result for last_name and first_name in table dbo.pmd will look like this:

last_name: ?????????????
first_name: ??????????????????

The rest of the values are alright.

So Right-Click on my database, click on properties, shows me that the collation is set to SQL_Latin1_General_CP850_BIN.
Right-Click on table dbo.pmd, click on Design, shows me that last_name and first_name are defined as NVARCHAR(50).

So what do I need to do different to make the Khmer Unicode characters getting stored in the database?

And by the way:
This SQL Example here, works like a charm… don’t see the difference…(beside that this statement would use the standard collation which doesn’t work for me either.

  • 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-05-23T06:09:15+00:00Added an answer on May 23, 2026 at 6:09 am

    You need to use N on your strings to make them unicode

    INSERT INTO dbo.pmd (patient_code, last_name, first_name, age, sex,province, district, commune, village)
    VALUES ('0600-075D4-4AC8', N'ៃាំុំឌគៃុំាំឌ', N'ៃគុំដសហគៃុំះកឆញហេឆ', '2008', 'm', '060000', '060400', '060403', '06040304')
    

    A quick example:

    DECLARE @khmertest TABLE (
                SomeText nvarchar(50) COLLATE SQL_Latin1_General_CP850_BIN,
                SomeText2 nvarchar(50)
          )
    
    INSERT @khmertest VALUES ('ៃាំុំឌគៃុំាំឌ', 'ៃាំុំឌគៃុំាំឌ')
    INSERT @khmertest VALUES (N'ៃាំុំឌគៃុំាំឌ', N'ៃាំុំឌគៃុំាំឌ')
    
    SELECT * FROM @khmertest
    

    gives

    SomeText    SomeText2
    ?????????????   ?????????????
    ៃាំុំឌគៃុំាំឌ   ៃាំុំឌគៃុំាំឌ
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've searched the Internet for a while now and I have not been able
I've searched for this a little but I have not gotten a particularly straight
I'm new to Java and have searched for quite a time now on the
I have searched and searched but as yet still cannot figure this ole problem
Believe it or not, I have searched the internet before asking this question. Unbelievably,
I have searched but apparently my google foo is weak. What I need is
I've been developing an application in C# (using VS2008) for quite sometime now and
I want to create an Enumeration using CodeDom API . I have searched enough
I've been programming for a long time now, but I'm not the world's most
i really need some help on this. I searched the internet but couldn't find

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.