• Post Reply Bookmark Topic Watch Topic
  • New Topic

Strings encoding  RSS feed

 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

is there any way to know with which charset a string has been encoded ?

Regards,
Neeraj.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Strings are all Unicode.

If you wanted to know what encoding was used when reading the String from some byte stream, then that information is not available from the String.
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks peter.

Regards,
Neeraj
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!