Problems with unicode characters
Posted: Mon Apr 30, 2012 6:24 pm
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?
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?