URL encoding is getting failed for special character. #Android
问题 I'm working on a solution where need to encode string into utf-8 format, this string nothing but device name that I'm reading using BluetoothAdapter.getDefaultAdapter().name . For one of sampple I got a string like ABC-& and encoding this returned ABC-%EF%BC%86 instead of ABC-%26 . It was weird until further debugging which helped to identify that there is difference between & and & . Second one is some other character which is failing to encoded as expected. & and & both are different. For