Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to add bangla font in my asp dot net project. Suppose I have a textbox id= txtMsg
When I write in the textbox then it appears Bangla Language. After that I will save this bangla information in SQL server. I have written the following codes
Font-Names="SutonnyBanglaOMJ" MaxLength="50"
But it does not work. Please help me.
Posted
Comments
Prasad Khandekar 24-May-13 23:38pm    
It's not about the font. It's about character encoding. Checkout following articles on MSDN.
1. http://msdn.microsoft.com/en-us/library/39d1w2xf%28v=vs.100%29.aspx
2. http://msdn.microsoft.com/en-us/library/aa223981%28v=sql.80%29.aspx

Regards,
Sergey Alexandrovich Kryukov 25-May-13 0:21am    
Do you mean Bengali script? Then look: "অআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞ". I can see the script's characters, can you? If you can, you already have appropriate font. Actually, this script is supported by nearly all modern OS my default.
—SA
Sumon562 25-May-13 0:39am    
Yes I need Bengali script. Now how can I utilize this that you mentioned.

1 solution

You always need apply to font "SutonnyBanglaOMJ" to see text in Bangla. So may be what you saved in database is raw text. Once you will apply font "SutonnyBanglaOMJ" to that raw text you will see text in Bangla.

What I mean here is that your data will always get saved in database in "ASCII Character" like "ab:&kl" and this does not look like Bangla text to you and this is ok.

Now to view data in Bangla you need bring this text from from database on to your webpage/ windows form and assign it to some control like textbox or label. You need to give font "SutonnyBanglaOMJ" to this control to view this text in Bangla.

This is what I understood from statement made by you "But it does not work".

Please let me know if I understood it wrong.
 
Share this answer
 
v2

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