Solved

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

Posted on 2009-04-03
3
498 Views
Last Modified: 2012-05-06
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
Comment
Question by:dkmarsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 26

Expert Comment

by:Chris Luttrell
ID: 24065565
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
 

Author Comment

by:dkmarsh
ID: 24065736
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
 
LVL 26

Accepted Solution

by:
Chris Luttrell earned 250 total points
ID: 24065940
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question