Click here to Skip to main content
15,917,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to concatenate Unicode character like this

int num=1200;
string str=”\u”+num;
txtUnicode.Text=str;

but it didn’t work can any one help me out?
:((
Posted

Try this[^]
 
Share this answer
 
You can use
txtUnicode.Text = "\u1200";
Remember that the \u argument is hexadecimal, not decimal, so for the Yen symbol, you will want "\u04b0", not "\u1200".

But if you need a variable int converted, then
txtUnicode.Text = ((char)num).ToString();
will work. Clumsy, but it works.
 
Share this answer
 
Comments
er.prakash.bhatta 4-Oct-12 1:42am    
I want to make composite Unicode word with concatenation of two Unicode words. Can you please help me in this?

Thanks
Prakash Bhatta

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