Problems with unicode characters

General TRichView support forum. Please post your questions here
Post Reply
AlecBergamini
Posts: 5
Joined: Wed Apr 25, 2012 10:43 pm

Problems with unicode characters

Post by AlecBergamini »

Let me try again. Maybe I can be more clear.

I am have problems with unicode characters when they are right after a new line. Here's how to duplicate the problem

1. Open the unicode editor demo at
..\Help\Demos\DelphiUnicode\Editors\Editor 1
2. Choose Clear in the file menu so you have an empty document.
3 The cmbStyle should have the default value of "Normal" selected.
4. Enter the following characters
ⅠⅡⅢⅣ by pasting. result: Only boxes appear
5. Enter the above characters using the Character Map applet that comes with windows (These are characters 2160, 2161, 2162, 2163.) and pasting from there. result: It works as expected.
6.Copy the character 度 and paste it on a new line and paste it at the begining of the line in 4 above. Result the boxes are replaced by there proper representation.
7. If I highlight all the bad boxed text and change the style combo to Unicode then the characters all appear correctly.

I would like to be able to paste in these unicode characters without the boxes being displayed and without having to reformat the text each time over to unicode, is that possible?
Sergey Tkachenko
Site Admin
Posts: 17561
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

It happens because not all fonts have glyphs for these characters. You just need to choose a font that has them.
Post Reply