Home All Groups Group Topic Archive Search About

ASCII Character code for the 6th power

Author
9 Jun 2006 6:51 PM
simchajoy2000@yahoo.com
Hi,

I know what the ASCII Character Codes are for the 2nd and 3rd powers in
VB.NET but I can't find the 6th power anywhere - does anyone know what
it might be or if it even exists?

Joy

Author
9 Jun 2006 8:32 PM
Göran_Andersson
The ASCII character set doesn't contain any characters for 2nd and 3rd
powers. What character set are you using?

If you mean ANSI, it has no character for the 6th power.

simchajoy2***@yahoo.com wrote:
Show quoteHide quote
> Hi,
>
> I know what the ASCII Character Codes are for the 2nd and 3rd powers in
> VB.NET but I can't find the 6th power anywhere - does anyone know what
> it might be or if it even exists?
>
> Joy
>
Author
9 Jun 2006 8:41 PM
simchajoy2000@yahoo.com
Chr(179) is the 3rd power and Chr(178) is the 2nd power

Göran Andersson wrote:
Show quoteHide quote
> The ASCII character set doesn't contain any characters for 2nd and 3rd
> powers. What character set are you using?
>
> If you mean ANSI, it has no character for the 6th power.
>
> simchajoy2***@yahoo.com wrote:
> > Hi,
> >
> > I know what the ASCII Character Codes are for the 2nd and 3rd powers in
> > VB.NET but I can't find the 6th power anywhere - does anyone know what
> > it might be or if it even exists?
> >
> > Joy
> >
Author
9 Jun 2006 8:44 PM
simchajoy2000@yahoo.com
here is a webpage with the ASCII Character Codes - the 2nd and 3rd
powers are in there

http://yorktown.cbe.wwu.edu/sandvig/docs/ASCIICodes.aspx

simchajoy2***@yahoo.com wrote:
Show quoteHide quote
> Chr(179) is the 3rd power and Chr(178) is the 2nd power
>
> Göran Andersson wrote:
> > The ASCII character set doesn't contain any characters for 2nd and 3rd
> > powers. What character set are you using?
> >
> > If you mean ANSI, it has no character for the 6th power.
> >
> > simchajoy2***@yahoo.com wrote:
> > > Hi,
> > >
> > > I know what the ASCII Character Codes are for the 2nd and 3rd powers in
> > > VB.NET but I can't find the 6th power anywhere - does anyone know what
> > > it might be or if it even exists?
> > >
> > > Joy
> > >
Author
9 Jun 2006 8:56 PM
Herfried K. Wagner [MVP]
<simchajoy2***@yahoo.com> schrieb:
>here is a webpage with the ASCII Character Codes - the 2nd and 3rd
>powers are in there
>
>http://yorktown.cbe.wwu.edu/sandvig/docs/ASCIICodes.aspx

Well, that's not ASCII.  As ASCII is a 7-bit encoding it only contains
character codes up to 127.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
9 Jun 2006 9:14 PM
David Browne
<simchajoy2***@yahoo.com> wrote in message
news:1149885868.558715.23220@y43g2000cwc.googlegroups.com...
here is a webpage with the ASCII Character Codes - the 2nd and 3rd
powers are in there

http://yorktown.cbe.wwu.edu/sandvig/docs/ASCIICodes.aspx


That's not ASCII.  ASCII is a 7-bit character set, and has only 128 members.


There is a unicode character for superscript 6.

http://www.unicode.org/charts/PDF/U2070.pdf

David
Author
10 Jun 2006 8:08 AM
Göran_Andersson
That is not the ASCII character set. As has already been pointed out,
ASCII is a 7 bit character set that contains characters with character
codes from 0 to 127.

There is an 8 bit extended ASCII character set that is used by DOS, but
that's not it either.

As stated in the title, it's the ISO 8859-1 character set, e.g. Latin-1.
The professor is a bit confused. ASCII character codes are only used
when you are using an ASCII character set. It's interresting to see that
the character set shown is lacking the space character, though...

There is no character for the 6th power in the Latin-1 character set.


simchajoy2***@yahoo.com wrote:
Show quoteHide quote
> here is a webpage with the ASCII Character Codes - the 2nd and 3rd
> powers are in there
>
> http://yorktown.cbe.wwu.edu/sandvig/docs/ASCIICodes.aspx
>
> simchajoy2***@yahoo.com wrote:
>> Chr(179) is the 3rd power and Chr(178) is the 2nd power
>>
>> Göran Andersson wrote:
>>> The ASCII character set doesn't contain any characters for 2nd and 3rd
>>> powers. What character set are you using?
>>>
>>> If you mean ANSI, it has no character for the 6th power.
>>>
>>> simchajoy2***@yahoo.com wrote:
>>>> Hi,
>>>>
>>>> I know what the ASCII Character Codes are for the 2nd and 3rd powers in
>>>> VB.NET but I can't find the 6th power anywhere - does anyone know what
>>>> it might be or if it even exists?
>>>>
>>>> Joy
>>>>
>
Author
10 Jun 2006 5:31 PM
Dick Grier
These are font characters, not ASCII (which is plain text).  What font
charcter is mapped to a specific value, depends on the font designer.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Author
10 Jun 2006 5:17 AM
Cor Ligthert [MVP]
Joy,

Many cultures have their own code tables for what sometimes is called
Extended ASCII and for Windows code pages.

There are less tables for Windows just because it is using more bits.
Cultures with languages based on Western Europe ones use almost forever
1252.

Have a look at these pages for that.

Try in general to avoid code pages who are based the extended ASCII code. By
instance in my country people are mixed up using 850 and 437 without that
they know that. You understand that with that you are already soon in
trouble.

General
http://www.microsoft.com/globaldev/reference/cphome.mspx

OS systems
http://www.microsoft.com/globaldev/reference/oslocversion.mspx

I hope this helps a little bit?

Cor


<simchajoy2***@yahoo.com> schreef in bericht
Show quoteHide quote
news:1149879069.692785.99530@y43g2000cwc.googlegroups.com...
> Hi,
>
> I know what the ASCII Character Codes are for the 2nd and 3rd powers in
> VB.NET but I can't find the 6th power anywhere - does anyone know what
> it might be or if it even exists?
>
> Joy
>
Author
11 Jun 2006 10:05 PM
hoppy
"simchajoy2***@yahoo.com" <simchajoy2***@yahoo.com> wrote in
news:1149879069.692785.99530@y43g2000cwc.googlegroups.com:

> Hi,
>
> I know what the ASCII Character Codes are for the 2nd and 3rd powers in
> VB.NET but I can't find the 6th power anywhere - does anyone know what
> it might be or if it even exists?
>
> Joy
>

So it's not ascii lol.

        Dim l As New Label
        l.Text = "Unicode char Superscript six: " & ChrW(&H2076)
        l.Font = New Font("Arial Unicode MS", 10.0F)
        l.AutoSize = True
        Me.Controls.Add(l)


I found the &H2076 code for the 6 on
http://www.unicode.org/charts/PDF/U2070.pdf
though you can try in word: insert->character and scroll through the pages
of chars until you get the one you want.
ChrW will return the unicode char. You chould also do:
Convert.ToChar(&H2076S)
The default font used on the label control doesn't have the superscript 6,
It displayed a small square instead. So I used a unicode font...