Encoding
(Automatically adding template at the end of the page.)
(Adding message template to the top of the page)
Line 1: Line 1:
{{message|Write the content here to display this box}}
In OCL, you can use the standard .net Encoding static class.
In OCL, you can use the standard .net Encoding static class.



Revision as of 22:16, 16 June 2024

Write the content here to display this box

In OCL, you can use the standard .net Encoding static class.

Convert both strings and byte arrays using:

  1. GetBytes(string)
  2. GetString(bytearray)

For example:

  • Encoding.ASCII.GetString(bytearray)

If you have data you think is encoded with ISO-8859-1, try to decode it with:

  • Encoding.Default.GetString(bytearray)
See also

Microsoft documentation on the Encoding class can be found here: https://learn.microsoft.com/en-us/dotnet/api/system.text.encoding

This page was edited 95 days ago on 06/17/2024. What links here