I have problem with converting string to bytes in Java when I'm porting my C# library to it. It converts the string but it is not the same byte array.
I use this code in C#
string input = "Test ěščřžýáíé 1234";
Encoding encoding = Encoding.UTF8;
byte[] data = encoding.GetBytes(input);
And code in Java
String input = "Test ěščřžýáíé 1234";
String encoding = "UTF8";
byte[] data = input.getBytes(encoding);
Lwft one is Java output and right one is C# how to make Java output same as C# one ?