Page 1 of 1

Backspace/Delete key works wrong with Korean characters

Posted: Sat Apr 21, 2007 1:51 pm
by JSH2
When I write korean characters in TRichViewEdit, and use the Delete or Backspace key to delete a korean character, It works wrong. It does not delete a korean character perfectly.
If I use the key twice, It deletes a korean character perfectly.

Korean characters are double-byte characters(DBCS).
Does the TRichView not support DBCS?

If not, why?
I think RichView with DBCS is possible if use the ByteToCharLen() function when the character length (not string buffer length) is needed.
Example :

//CharLen := System.Length(AString)
CharLen := ByteToCharLen(AString, System.Length(AString) )

(Sorry for my poor English)

Posted: Sun Apr 22, 2007 11:36 am
by Sergey Tkachenko
No, trichview does not support DBCS directly.
In order to support Korean, use Unicode: http://www.trichview.com/forums/viewtopic.php?t=70
You can still load and save DBCS files, but internally the text must be Unicode.