Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.nio.charset. UnsupportedCharsetException: MacRoman  RSS feed

Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting an error with this program:

This is the error:

The error is with Charset.forName("MacRoman").
I think it's not supported on my OS. Funny thing is: it's the default charset!

public class UnsupportedCharsetException
extends IllegalArgumentException

Unchecked exception thrown when no support is available for a requested charset.

I'm not desparate for a solution. I was just working with this to learn more about charsets.
To do a great right, do a little wrong - shakepeare. twisted little ad:
Rocket Oven Kickstarter - from the trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!