daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Aug 20th, 2018 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [TestMethod]
  2.     public void TestChars()
  3.     {            
  4.         var original = "é";
  5.         var normalized = original.Normalize(NormalizationForm.FormD);
  6.  
  7.         var originalBytesCsv = string.Join(',', Encoding.Unicode.GetBytes(original));
  8.         Assert.AreEqual("233,0", originalBytesCsv);
  9.  
  10.         var normalizedBytesCsv = string.Join(',', Encoding.Unicode.GetBytes(normalized));
  11.         Assert.AreEqual("101,0,1,3", normalizedBytesCsv);
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top