Created
March 6, 2013 10:04
-
-
Save klmr/5098252 to your computer and use it in GitHub Desktop.
Terser code to convert a byte code to a string.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim bytes As New Byte() { CByte(131) } | |
Dim str As String = Encoding.GetEncoding(1252).GetString(bytes) | |
' Or, much simpler: | |
Dim str As String = ChrW(&H0192).ToString() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment