Backspace/Delete key works wrong with Korean characters

General TRichView support forum. Please post your questions here
Post Reply
JSH2
Posts: 7
Joined: Sat Apr 21, 2007 12:27 pm

Backspace/Delete key works wrong with Korean characters

Post 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)
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply