meatbag

Convert Base64 QueryString back to UTF8 string

Jan 19th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1.     public static string Base64ToUTF8(string v)
  2.     {
  3.         // previously went from utf8 to base64, so we go from base64 to utf8
  4.         byte[] b = Convert.FromBase64String(v);
  5.         string val = Encoding.UTF8.GetString(b);
  6.         return val;
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment