Hello Alexander,

On Sat, 29 May 2004 18:28:19 +0600 GMT (29/05/2004, 19:28 +0700 GMT),
Alexander Leschinsky wrote:

TF>> I reply to a mail in Spanish, which obviously comes in with the right
TF>> encoding, as I can see the � and acentos and all. Then I want to type
TF>> my reply, and since alt-0241 is cumbersome on an English keyboard, I
TF>> copy & paste from the quoted text - and see a question mark pasted
TF>> instead of the �. Why is that?

AL> Because at least you must have Spanish keyboard layout and "Copy
AL> from" after swithing to this layout

Let's go down to what a character is. It is a string of hex values, or
let's say a byte full of 1's and 0's. The different keybaord layouts
have the only effect that a certain key "produces" a certain byte. for
example, if I hit the key that depicts a Y on the English keybaord, a
certain byte will be sent, and this will be interpreted to show
something on the screen, which according to my character set and font
will be what I see as a Y.

If I hit the key depicting a Y on the English keybaord while my
keyboard layoput is set to German, another sequence will be sent,
namely the one which will be interpreted as a Z on my screen. In order
to make a Y visible, I now need to hit the Z key on the English
keybaord (I still have German keybopard layout set). In order to make
computers in Germany usable, the manufacturer will just print Y
instead of Z onto the key.

The 1's-and-0's-sequence for the letter remains the same, regardless
of which key I have to hit according to the layout.

So, if I see an � in a mail, I know it has a certain sequence of 1'
and 0's (someone convert alt-0241 into binary, please). If I copy this
into the clipboard, this sequence will not (or is not supposed to)
change. If I paste it, I will expect to see the same letter, and that
has nothing to do with my keyboard layout.

When I type alt0241, the � will be shown, so the font and the
character set know it. Try with this message: Hit reply and copy and
paste the above character into your new text. Tell me whether you see
an � or a question mark.

AL> (this usually not needed on non-unicode Windows, but I suppose
AL> Chinese Win98 have some "hacks", which transorm it into
AL> "half-Unicode", but it's IMHO and can be full delirium)

I can replicate the erroneous behaviour in the office under XP Pro.
All my keyboard layouts are US-English.

-- 

Cheers,
Thomas.

Moderator der deutschen The Bat! Beginner Liste.

Thursday at 5:00 PM there will be a meeting of the Ladies Little
Mothers Club. All wishing to become little mothers, please see the
minister in his study.

Message reply created with The Bat! 2.11 Beta/6
under Chinese Windows 98 4.10 Build 2222 A 
using a Pentium P4 1.7 GHz, 256MB RAM



________________________________________________________
 Current beta is 2.11 Beta/8 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/

Reply via email to