Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to know if string is UTF-8 encoded?

803959Jan 17 2011 — edited Jan 18 2011
Hello All,

I have an instance in my application. Where I need to get one parameter from URL. There is possibility that whatever I get as string can be encoded or can be not encoded.

And if its encoded I have to decode it before using.

Can anybody please suggest me the way by which we can identify if particular string is already UTF-8 encoded or not?

Thanks,
Jenish
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2011
Added on Jan 17 2011
6 comments
13,527 views