Nope - didn't work. It saves it as a ? (question mark) and displays as ? (question mark)
Main Topics
Browse All TopicsHow do you save and display Spanish Characters (i.e. ½) entered in a text box? The data needs to be saved in a SQL Server 2005 dbase and then displayed in a text box when retrieved from the dbase.
Thx
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Are you saying that saving the Spanish character in the database (not dbase . . . dbase is normally a reference to an old file based database system) and then displaying it in the ASP form results in the character appearing as a "?"? Or are you looking at the results of a query being run in, for instance, Query Analyzer?
I am saving a value in a text field, which contains a Spanish character, to a SQL Server 2005 database. I am utilizing the ExecutNonQuery to save the text field to the database. The database field is set to nvarchar. When saving to the database the character is converted to a ? (question mark). If I go to the database and copy and paste the Spanish word in the field of the database the Spanish word is displayed with no problem. I use ASP.NET (2005) to obtain the value from the database and the Spanish character will display in a grid and text box with no problem.
The problem seems to be occurring when utilizing the ExecuteNonQuery which seems to be changing the Spanish Character to a ? (question mark).
Hmmm . . . I thought theat the default for ASP.Net was, effectively, NChar . . . are you using A dataset that has an INSERT query to accomplish the saving to the database?
If you haven't tried it yet, you might want to define a stored procedure in SS2005 with parameters that include an NVarChar for the text you are saving.
Business Accounts
Answer for Membership
by: 8080_DiverPosted on 2009-07-24 at 17:28:57ID: 24940189
Set the column's datatype to NChar or NVarChar. You are dealing with extended characters and that is going ot require an N(Var)Char to hold the 2-byte characters.