Solved

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

Posted on 2009-04-03
3
494 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server - Sum Decimal Columns 11 33
space used inside SQL data file- PerfMon counter.. 2 25
Addition to SQL for dynamic fields 6 38
Query Syntax 17 36
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 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