I had a requirement in which i am convrting the UTF-BOM bytes to string and from the string I need to convert or remove the UTF-BOM to UTF8. Could any one can help me in writing the java service or paste the code.
And I used the ignoreBOMChars to true while converting bytesToString but still it is not removing the BOM chars in the string
Attahed the sample file and the package to test the file length should come as 0 after removing the BOM chars.Could you please check and help in creating the custom service to remove the BOM chars and get the output length as 0 as it is an encrypted file pgp