Skip to content

Instantly share code, notes, and snippets.

@klmr
Created March 6, 2013 10:04
Show Gist options
  • Save klmr/5098252 to your computer and use it in GitHub Desktop.
Save klmr/5098252 to your computer and use it in GitHub Desktop.
Terser code to convert a byte code to a string.
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