Convert Strings to and from UTF8 byte arrays ...
Posted: Wed Jan 08, 2020 7:52 pm
Hello to all members,
is there any way to convert this Java code to FWH (getBytes method):
Thanks
is there any way to convert this Java code to FWH (getBytes method):
- Code: Select all Expand view
- *
*
*
protected static byte[] getTest(String httpMethod, String methodUri, String username, String password)
{
String str = httpMethod + "\n" + methodUri + "\n" + username + "\n" + password;
return str.getBytes(UTF8); /**return byte array**/
}
Thanks