Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Encode Text (UTF-8) using Base64-Encoding

Description
Converts plain text to a Base64-Encoded string.
Language
C#.net
Minimum Version
Created By
Janko Heilgeist
Contributors
-
Date Created
Aug 19, 2014
Date Last Modified
Aug 19, 2014

Macro Code

using System;

public static class ClipboardFusionHelper
  {
    public static string ProcessText(string text)
      {
        byte[] textBytes = System.Text.UTF8Encoding.UTF8.GetBytes(text);
        return System.Convert.ToBase64String(textBytes);
      }
  }