Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: ASCII Extended Encoding Question


Message #1 by "DotNetterGirl" <dotnettergirl@y...> on Wed, 5 Mar 2003 07:32:10
You are right I'm getting the same results as you describe.
I do not have a thorough knowledge of this, but as I remember it well,
Windows 2000 (and up) uses Unicode instead of Ascii code.
So if you want to have a =BF you have to use ChrW(191)
For =E4 : ChrW(228)

I use ChrW instead of Chr because ChrW takes Unicode as an argument.
For unicode charts have a look at www.unicode.org/charts/
You have to convert the numbers from Hex to Dec.

Hope this helps

Regards,

Gerhard Wentink

-----Oorspronkelijk bericht-----
Van: DotNetterGirl [mailto:dotnettergirl@y...]
Verzonden: woensdag 5 maart 2003 22:49
Aan: ASPX_Professional
Onderwerp: [aspx_professional] RE: ASCII Extended Encoding Question


Maybe I am not understanding the extending set correctly, but when I use

132, for example, I believe I should see a lower case "a" with an
umlaut,
but instead I just get two small hash marks (positioned near the bottom
of
the textbox). When I use 168, I think I should see an upside-down
question
mark (?), but instead I get an even smaller set of hash marks,
positioned
near the top of the textbox. Everything below 127 seems to conform to
the
ASCII table that I am familiar with, but not with the values I think
should be there for values > 127. For reference, I am looking at the
table
at the following hyperlink:

http://www.asciitable.com/


Please help !




> What is the problem? I tested your code and it seems to work properly,
also for values above 127.

Regards,
Gerhard Wentink

-----Oorspronkelijk bericht-----
Van: DotNetterGirl [mailto:dotnettergirl@y...]
Verzonden: woensdag 5 maart 2003 7:32
Aan: ASPX_Professional
Onderwerp: [aspx_professional] ASCII Extended Encoding Question


I have a problem writing any ascii character above 127, and was told I
must use encoding for extended characters, but I am not sure what to do
at
this point. I am using the following code:

______________________________________________________

<%@ Page Explicit=3D"True" Language=3D"VB" Debug=3D"True" %>

<html>
<script runat=3D"server">

Sub Page_Load(Sender As Object, E As EventArgs)
If Not Page.IsPostBack Then
Dim var1 As String
var1 =3D chr(125)
label_one.Text =3D var1
End If
End Sub

</script>

<title></title>
</head>
<body topmargin=3D"0" leftmargin=3D"0">
<form runat=3D"server">
<asp:textbox ID=3D"label_one" Runat=3D"server" />
</form>
</body>

______________________________________________________


Please help or email if you can. Thanks !



  Return to Index