Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

I'm using bamini font to my textbox. i need to pass the unicode value to insert. But i could not get it. its retrive as english . for example if i type the value "தமிழ்" in a textbox. i put a brak on my code. the value has passed like "?????" or dgfmd.

Help me to get it.
Posted
Comments
Sergey Alexandrovich Kryukov 10-Mar-14 16:02pm    
You always with with Unicode in .NET, nothing else. Check up if your page uses UTF-8, specifies it as encoding of the content type in HTTPEQUIV.
—SA

In your web.config file add the next settings:

HTML
<globalization>
 requestEncoding="utf-8"
 responseEncoding="utf-8"
 fileEncoding="Unicode" />
</globalization>
 
Share this answer
 
Try
C#
byte[] bytes = System.Text.Encoding.Unicode.GetBytes(strg);
foreach(byte b in bytes) {
     Console.Write("{0:x2}", b);
}
 
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