Asked by:
how to save data in hindi font to ms sql data base from a textbox/

Question
-
hi ,,,
i am using c# windows application.
i want to insert data in Hindi fount from some text boxes to ms sql database but when i take kruti dev fount to insert data it inserted English fount instead of hindi char how to do this please help.....
Monday, April 8, 2013 5:18 AM
All replies
-
Change the type of table field to nchar/nvarchar/ntext to support unicode charset.
It all Happenz Sendil
Monday, April 8, 2013 5:35 AM -
i am using nvarchar but don't know how to take unicode charset from textbox.....Monday, April 8, 2013 7:39 AM
-
Related to your question is in this forum only one reply possible.
If your Hindi text is visible in your Textbox then
var MyDataField = MyTextBox.Text;
For VB users seeing this reply.
change var for dim and remove the semicolon
Success
CorTuesday, April 9, 2013 9:16 AM -
i am using kruti dev 10 fount for text boxes , it shows hindi on run time in tex box but insert english in database....Thursday, April 11, 2013 4:33 AM
-
If you copy the text from database back to textbox (e.g. manually via Clipboard) and see a correct Hindi text, then there is no problem with database. You probably see English letters when a different font is used. The fonts are not stored to database together with the text.
Probably Kruti Dev 010 is a non-Unicode font that replaces English characters.
- Edited by Viorel_MVP Thursday, April 11, 2013 5:25 AM
Thursday, April 11, 2013 5:24 AM -
What kind of textbox are you using, maybe a RichTextbox?
Then we are not talking about the same.
Success
CorThursday, April 11, 2013 5:29 AM