Extra character while enconding and decoding UTF-8 java string

141 Views Asked by At

Whenever we are passing a message in language Kannada Language only a certain character <U+200C> gets added in the message, which is eventually send via SMS. we are using UTF-8 encoder and decoder. while testing raw string it is asserting same value for rawString and decodedString.

Actual Value :

ಕ್<U+200C>ಬ

Expected Value :

ಕ್‌ಬ
0

There are 0 best solutions below