Re: Unicode VBScript messagebox



Thanks for letting us know that your problem is fixed.
I have a question about the fix. Did 'installing the east asian languages'
actually install a new or updated font that includes glyphs you didn't
previously have for that font, or did it update some mysterious language
information that allowed your system to display the correct glyphs for the
Unicode code points in your MsgBox's message?

-Paul Randall

"Bino" <Bino@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8A873F66-EF48-471F-AF54-A4749589A2F3@xxxxxxxxxxxxxxxx
Thanks HAL07 ,Paul Randal for your replies..

I have solved my problem. The problem was due to the non availabilty of
the
font. After installing the east asian languages in my system. The Unicode
text in the message box is displayed correctly :)

"Paul Randall" wrote:


"Bino" <Bino@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B64374DB-C4AE-46A3-9744-17868D6A83B3@xxxxxxxxxxxxxxxx
Can any one please tell me how to make a VBscript messagebox support
unicode
characters.
MsgBox("??????????",vbYesNoCancel + vbQuestion, title)

The string in Msgbox is displayed as squares in the messagebox

Thanks in advance.

I don't have any definite answers for you. Hopefully someone with
'internationalization' knowledge will jump in here.

I copied your MsgBox statement from my OE6 newsreader window to NotePad
and
saved it in a .VBS file as Unicode and another .VBS file as UTF-8. These
two files display the same in Notepad on this US-English WXP-SP3 system.
The text to
be displayed by the message box is displayed as boxes within Notepad.
Notepad's font is set to Lucida Console. The .VBS file saved as Unicode
runs, but the text is in the message box is displayed as boxes. The .VBS
file saved as UTF-8 causes a scripting compilation error: Invalid
Character,
because VBScript only understands Ansi 8-bit characters and 16-bit
Unicode
characters, not variable bytes per character encodings like UTF-8.

When I boot from an older and wiser WXP-SP2 partition on this same
computer,
Notepad
displays the message as Japanese (or some characters foreign to me,
definitely not boxes) text. This partition's Notepad uses the same
Lucida
Console font. Running the Unicode script, the message box displays the
same
Japanese
text seen within Notepad; I've attached the .png graphic of the message
box.
I am assuming that this older partition got wiser by my allowing IE to
download/install some language-related stuff while I
was surfing the net.

-Paul Randall





.



Relevant Pages

  • Re: How to read and Display Non English Characters
    ... I have installed the Asian language support. ... Note, however, that normally these fonts are not selected by default. ... Dicanio or both) on reading Unicode strings. ... too should be able to display the text. ...
    (microsoft.public.vc.mfc)
  • Re: Unicode & Pythonwin / win32 / console?
    ... > * Webbrowsers for example have to display defective HTML as good as ... unknown unicode chars as "?" ... > occasionally chinese chars are displayed cryptically on non-chinese ... If the decision for default 'strict' encoding on ...
    (comp.lang.python)
  • Re: Is this expression viewable on sci.math?
    ... In general, any characters outside ... >> display as expected on all screens. ... > display Unicode nowadays. ... I'm not certain a good news reader suffices: ...
    (sci.math)
  • Re: Open html as source
    ... Word X -- Word X can't display most Unicode. ... characters as two symbols, so I suppose it forgot that it's UTF8. ... Choose UTF-8 at that point. ...
    (microsoft.public.mac.office.word)
  • Re: What support is there for Unicode?
    ... font you have chosen for display happen to be displayed correctly, ... character set and you are limited to <256 glyphs at a time. ... but users of certainly applications can use see Unicode ... !Unicode on your machine does not magically add any Unicode support to ...
    (comp.sys.acorn.apps)

Loading