Thread: Alpha-Sign
View Single Post
Old 07-02-2009   #2 (permalink)
Paul Randall


 
 

Re: Alpha-Sign


"Luzia Baumgartner" <nospam@xxxxxx> wrote in message
news:%234O$stw%23JHA.5068@xxxxxx
Quote:

> Hello there
>
> I have a problem with special characters. I need to print the alpha and
> beta sign within a text. Is there a possibility to do this? It doesn't
> work with chr() or chrw().
>
> Thanks for help in advance!
>
> Regards,
>
> Luzia
To display any particular character, you need at least two thing: a font
that has a character that is what you want, and the code point (number you
would put in Chr() or ChrW() ) to display that character.

You should have mentioned what values you put in your chr() or chrw() rather
than saying only "It doesn't work with chr() or chrw()." The characters
displayed by Chr()/ChrW() with values less than 256 are dependent on your
computer's Locale; what works in one locale might display something entirely
different in another locale. There is info about Locale and changing it for
the duration of your script, in the scripting help file, script56.chm, which
is probably installed on your computer.

You also didn't mention how you are trying to display the character, like in
a message box or in an IE window. I can't remember the procedure to change
the font for message boxes, but default installations of WXP uses a font
with a fairy wide range of Unicode characters. Knowing your OS would also
help with giving you a useful response.

There is a tool built into Windows for displaying all the characters
available in the various installed fonts. I can't remember the name of this
program, but perhaps your computer's help & support can give you that info.

You probably need a Unicode code point; see www.unicode.org for all things
Unicode. If you haven't been there before, be sure to look at the topics
displayed when your cursor hovers over 'New to Unicode' and 'General
Information' in the upper left corner.

-Paul Randall


My System SpecsSystem Spec