Characters damaged when copying

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
George Schizas

Characters damaged when copying

Post by George Schizas »

I'm using English Windows 2000 with languages English and Greek installed on my keyboard. I am also using TextPad 4.4.1a and this behaviour occurs in 4.4.1 as well, but not in 4.4.0.
When my keyboard is switched to English and I copy characters that are in Greek then when I paste them Greek (CP 1253) are replaced by CP 1252 characters, translated into their non-accented counterparts. E.g. when I copy the character "alpha" (ASCII 0xC1, Unicode U+0391), it converts into "a" (ASCII 0x61, Unicode U+0061), which is the letter a acute (ASCII 0xC1, Unicode U+00C1)
I'm guessing this is a problem with copying the codepage of the underlying text, because TextPad now works correctly when pasting greek text copied from another program, e.g. Notepad, while the keyboard is switched to English.
George Schizas

Re: Characters damaged when copying

Post by George Schizas »

While examining clipboard contents, I noticed that the locale for the clipboard is different, according to what keyboard is selected, 0x409 for English and 0x408 for Greek.
Perhaps Textpad should always use the locale for the language used in the Font Script. This problem exists on other programs (e.g. copying from SQL Server Enterprize Manager into Excel), but it has been corrected in Textpad 4.4.1, only in a broken way (it now requires switching to Greek Keyboard every time one wishes to copy text WITHIN TextPad). It is a problem related to *copying* text, not pasting, if it helps...
Post Reply