Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a webpage that stores text information from a asp web form to a database. When I type in "£50" (no quotes), what I get stored in the database is "?£50". I don't understand why the question mark is there in the database field. Can anyone explain why this is happening?

Thanks
Posted
Comments
Mike Meinz 25-Sep-13 8:11am    
I did it and it worked fine for me. I tried it using VarChar and NVarChar columns. It worked fine for both.

Perhaps, you have a null or otherwise undisplayable character in front of the £50.

You may get better help if you post some source code that demonstrates how you get the text and store it in the database.

1 solution

What is the datatype of your column? If the datatype is for example a varchar (sql server database) you may want to try to change it to nvarchar.

Maybe it's wise to keep the amount (50) in a decimal column and the currency in a different column.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900