1
Vote

Unicode bug

description

This addresses incorrect rendering of Unicode characters in plugin properties, in DynamicContentBase.
 
static private string DecodeFrom64(string encodedData)
    {
 
        try
        {
            byte[] encodedDataAsBytes = System.Convert.FromBase64String(encodedData);
            string returnValue = System.Text.Encoding.UTF8.GetString(encodedDataAsBytes);
 
            return returnValue;
 
        }
        catch (Exception e)
        {
            throw;
        }
 
 
    }
 
    static private string EncodeTo64(string toEncode)
    {
 
      byte[] toEncodeAsBytes = System.Text.Encoding.UTF8.GetBytes(toEncode);
 
        string returnValue = System.Convert.ToBase64String(toEncodeAsBytes);
 
        return returnValue;
 
    }

comments