Korean characters replaced by ??

We are using MS SQL 2012 (Azure). When our web application saves text into an nvarchar field (Max) if the user has a Korean keyboard the Korean characters are replaced by question marks.   ???

Any idea how to prevent this in order to accept Korean characters?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jan LouwerensSoftware EngineerCommented:
What is the charset used by both your web server and your database? In order to preserve those characters, they should both be at least "UTF-8".

If they are "US-ASCII" or "ISO-8859-1", you'll need to update the charset.
AleksAuthor Commented:
We use classic ASP. Where can I check both ?
Jan LouwerensSoftware EngineerCommented:
For your web pages, just look at the source, and in the head you should have a tag similar to:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

Open in new window

As for the database, you'd probably need to contact your DBA to determine what charset it was set up with.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

AleksAuthor Commented:
We do use UTF for the ASP pages. Ill ask the DBA tomorrow about the Database. I think its set to Latin. Could that be the issue?
Jan LouwerensSoftware EngineerCommented:
Yes, that very well could be the issue.

The charset used by the database most likely does not support Korean characters.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AleksAuthor Commented:
After checking we figured that the field had to be changed to nvarchar AND the insert into the table needed to have N'  before the content.
This allowed us to save the content in Korean characters.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.