Advertisement
sahchas

Untitled

Oct 30th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. //Puerba en c#
  2.  
  3. using System;
  4. using System.Text;
  5. using System.Security.Cryptography;
  6.  
  7. public class Test {
  8.  
  9. public static void Main(string[] args) {
  10.  
  11. byte[] bytes = Encoding.ASCII.GetBytes("araña");
  12.  
  13. string stringBytes = BitConverter.ToString(bytes);
  14.  
  15. Console.WriteLine("bytes : " + stringBytes);
  16. }
  17.  
  18. }
  19.  
  20.  
  21. //Prueba en nodejs
  22.  
  23. console.log(new Buffer("araña", "ascii"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement