Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
how to display every symbol of UNICODE on richtextbox which gets displayed as it is and not like a block. My application is in c# win. form.



Thanks in advance
Posted
Updated 23-May-14 3:10am
v4
Comments
Sergey Alexandrovich Kryukov 16-May-14 10:33am    
It depends on how the character map is defined. If you don't know how it is defined, the question is useless. If you do know that, you should know how to access the element of the set. So, what is that question about?
—SA
agent_kruger 16-May-14 10:34am    
sir, what do you mean by "how it is defined"?
Sergey Alexandrovich Kryukov 23-May-14 10:10am    
In programming there is a term "definition" (as opposed to "declaration"), some piece of code.
But after your clarification it became appear that this is a pretty interesting question which is hard to answer.
It is not "irrespective to font". Unicode defines "code points" of the charactes. Each font define the glyphs for each (roughly speaking, its more complex than that, due to, say, diacritical marks, hinting and a lot more of complex things). Font metadata tells which characters are defined and which are not (by ranges). Which are not are defined are shown as a box.

Now, not every combination of bytes presents a valid character, but this is a matter of UTF; let's consider the code is consistent and correct. But also there are many code point reserved for not yet defined characters...

—SA
agent_kruger 21-May-14 10:17am    
sorry sir, i have changed the question and made it much more appropriate. Please see if you can answer it.
gggustafson 16-May-14 10:47am    
Are you asking about ASCII and extended ASCII (256 characters from 0x00 to 0xFF)? If so, note that some are not printable (0x00 through 0x1F and DEL).

1 solution

It could be a couple of issues which is what SA was getting at.

See http://stackoverflow.com/questions/420659/unicode-characters-not-showing-in-system-windows-forms-textbox[^]

The textbox does support Unicode but it may be the font you are using or it may be that the font you need is not installed. It may also be how you are loading the text into it.
 
Share this answer
 
Comments
agent_kruger 21-May-14 10:17am    
sorry sir, i have changed the question and made it much more appropriate. Please see if you can answer it.
gggustafson 21-May-14 12:38pm    
You are not listening!

What everyone is saying is that what gets displayed is dependent on the font used in the RichTextBox. Go to your application, click on your RichTextBox, and see what the font property is. It us usually Microsoft Sans Serif. But if your system is not setup for the English Code Page, then it may be something else.

There is no font that I know of that can display "every symbol of UNICODE".
Sergey Alexandrovich Kryukov 23-May-14 10:18am    
"English code page" is totally irrelevant. Code pages are obsolete and used for compatibility (very minimal compatibility). Unicode support does not depend on that.
—SA

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