DaveMason Posted February 10, 2006 Share Posted February 10, 2006 Hello! I'm new to VB.NET. How do I display unicode value? I'm trying to read in one letter at a time and then display the letter and the unicode value.thanks in advance. Link to comment Share on other sites More sharing options...
aspnetguy Posted February 10, 2006 Share Posted February 10, 2006 This is in C# but it shouldn't be too hard to convert to VB int z,x; x=0; char[] charList = new char[2]{'x','a'}; byte[] byteList = System.Text.UnicodeEncoding.Unicode.GetBytes(charList,0,charList.Length); for(z=0;z<byteList.Length;z++) { if(byteList[z] != 0) { Response.Write(charList[x] + "="+byteList[z] + "<br>"); x++; } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now