Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Print_tst(object sender, EventArgs e)
- {
- StringBuilder s = new StringBuilder();
- string t;
- for (byte i = 0; i < byte.MaxValue; i++)
- {
- t = Encoding.ASCII.GetString(new byte[] { i });
- s.AppendFormat("{0} ", t);
- }
- s.Append("\n");
- for (byte i = 0; i < byte.MaxValue; i++)
- {
- t = Encoding.BigEndianUnicode.GetString(new byte[] { i });
- s.AppendFormat("{0} ", t);
- }
- s.Append("\n");
- for (byte i = 0; i < byte.MaxValue; i++)
- {
- t = Encoding.Default.GetString(new byte[] { i });
- s.AppendFormat("{0} ", t);
- }
- s.Append("\n");
- for (byte i = 0; i < byte.MaxValue; i++)
- {
- t = Encoding.Unicode.GetString(new byte[] { i });
- s.AppendFormat("{0} ", t);
- }
- s.Append("\n");
- for (byte i = 0; i < byte.MaxValue; i++)
- {
- t = Encoding.UTF32.GetString(new byte[] { i });
- s.AppendFormat("{0} ", t);
- }
- s.Append("\n");
- for (byte i = 0; i < byte.MaxValue; i++)
- {
- t = Encoding.UTF7.GetString(new byte[] { i });
- s.AppendFormat("{0} ", t);
- }
- s.Append("\n");
- for (byte i = 0; i < byte.MaxValue; i++)
- {
- t = Encoding.UTF8.GetString(new byte[] { i });
- s.AppendFormat("{0} ", t);
- }
- s.Append("\n");
- disp.Text = s.ToString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement