Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 510
  • Last Modified:

handling macrons in sql data table - vb.net front end

I am writing an application that has data that contains macrons (dash above charactors)

An example being Ngti Awa.

I need to be able to have a user enter the above name (including macron) and then save it in a sql server database.

I have tried saving the macron, but the macron disappers.

Do I need to set some regional settings or something ?

0
dkmarsh
Asked:
dkmarsh
  • 2
1 Solution
 
Chris LuttrellSenior Database ArchitectCommented:
two things to check are the coalation of the database and are you storing it in an NVARCHAR field that can handle those type of characters?
0
 
dkmarshAuthor Commented:
Thanks for your comment. I have found that the collation sequence is SQL_Latin1_General_CP1_CI_AS and the column is nvarchar(50).

Can you please let me know how I would find a collation sequence that would work with the macron ?
0
 
Chris LuttrellSenior Database ArchitectCommented:
I was not sure if the coalation was the issue or not, but I knew it had to be nvarchar datatype.  I did some searching and I found this link that others have said helped them solve the problem. http://www.codeproject.com/KB/cs/multilingual_pplication.aspx 
Basicly you use the 'N' character in the insert statement for the nvarchar datatype. It then accepts the unicode values and correctly stores them on the db.
There is also a prior EE post at http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_21358522.html?query=korean&topics=42 you can see if it has other useful info.
HTH
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now