Encoding
No edit summary
No edit summary
Line 1: Line 1:
In Ocl you can use the standard .net Encoding static class:
In OCL, you can use the standard .net Encoding static class:
 
* Encoding.ASCII.GetString(bytearray)
Encoding.ASCII.GetString(bytearray)
If you have data you think is encoded with ISO-8859-1, you should try and decode it with:
 
* Encoding.Default.GetString(bytearray)
If you have data that you think is encoded with ISO-8859-1you should try and decode it with:
 
Encoding.Default.GetString(bytearray)
[[Category:OCL]]
[[Category:OCL]]

Revision as of 07:47, 28 February 2023

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

  • Encoding.ASCII.GetString(bytearray)

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

  • Encoding.Default.GetString(bytearray)
This page was edited 98 days ago on 02/10/2024. What links here