Re: Unicode VBScript messagebox
- From: "Paul Randall" <paulr901@xxxxxxxxxxxx>
- Date: Thu, 9 Jul 2009 11:59:41 -0600
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
.
- References:
- Unicode VBScript messagebox
- From: Bino
- Re: Unicode VBScript messagebox
- From: Bino
- Unicode VBScript messagebox
- Prev by Date: Re: Script to clean up Flash Player old files
- Next by Date: Trick one
- Previous by thread: Re: Unicode VBScript messagebox
- Next by thread: VB Script for auto login for telnet
- Index(es):
Relevant Pages
|
Loading