By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,454 Members | 1,803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,454 IT Pros & Developers. It's quick & easy.

ASCII Character code for the 6th power

P: n/a
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

Jun 9 '06 #1
Share this Question
Share on Google+
9 Replies


P: n/a
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.

si***********@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

Jun 9 '06 #2

P: n/a

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.

si***********@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


Jun 9 '06 #3

P: n/a
here is a webpage with the ASCII Character Codes - the 2nd and 3rd
powers are in there

http://yorktown.cbe.wwu.edu/sandvig/...SCIICodes.aspx

si***********@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.

si***********@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


Jun 9 '06 #4

P: n/a
<si***********@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/...SCIICodes.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/>

Jun 9 '06 #5

P: n/a

<si***********@yahoo.com> wrote in message
news:11*********************@y43g2000cwc.googlegro ups.com...
here is a webpage with the ASCII Character Codes - the 2nd and 3rd
powers are in there

http://yorktown.cbe.wwu.edu/sandvig/...SCIICodes.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

Jun 9 '06 #6

P: n/a
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/r...ce/cphome.mspx

OS systems
http://www.microsoft.com/globaldev/r...ocversion.mspx

I hope this helps a little bit?

Cor
<si***********@yahoo.com> schreef in bericht
news:11*********************@y43g2000cwc.googlegro ups.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

Jun 10 '06 #7

P: n/a
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.
si***********@yahoo.com wrote:
here is a webpage with the ASCII Character Codes - the 2nd and 3rd
powers are in there

http://yorktown.cbe.wwu.edu/sandvig/...SCIICodes.aspx

si***********@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.

si***********@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

Jun 10 '06 #8

P: n/a
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.
Jun 10 '06 #9

P: n/a
"si***********@yahoo.com" <si***********@yahoo.com> wrote in
news:11*********************@y43g2000cwc.googlegro ups.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...
Jun 11 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.