[Javascript] Accented Characters in Alert box

Peter Brunone peter at brunone.com
Fri Jan 31 09:04:54 CST 2003


   I guess the question then would be, how is Thierry rendering these characters so that they're messed up by the alert box?  I've always used Alt+keypad combos myself, and never seen them distorted.

-Peter

---------- Original Message ----------------------------------
From: "Andrew McCombe" <andrew at euperia.com>
Reply-To: javascript at LaTech.edu
Date: Fri, 31 Jan 2003 13:50:39 -0000

>
>Yes - it does work!
>
>>
>>
>> I don't think you can do this in alert boxes.  There is a way of printing
>> them directly using a nifty little-known trick if you are using
>> Windows.  As
>> the keyboard only has 104 (or close) keys, you can access the full 256
>> characters of a font by holding down the right alt key and entering the on
>> the number pad the numerical code for the character you require:
>>
>> ie:
>> ¼ is alt+(number pad) 0188
>> ½ = 0189
>> ¾ = 0190
>> • = 0149
>> é = 0233
>> © = 0169
>> ™ = 0153
>>
>> I've not tried these in an alert box.
>>
>> Andrew
>>
>> >
>> >
>> > Hi,
>> > I would like to display accented characters 'é' within an Alert box
>> > but both é  and  é endup showing Z^ or some other
>> > garbage.
>> >
>> > How can I pass accented characters to an Alert box?
>> >
>> > thanks!
>> > --
>> > Thierry
>> >




More information about the Javascript mailing list