java.io.UnsupportedEncodingException problem & solution

As a web developer, I’m working on lots of things. Today, while working on a windows machine and trying to run an ANT task and then run JBoss to test my build, I encountered this error:

java.io.UnsupportedEncodingException: cp1255

After quite some time of Googling and finding nothing, I remembered I changed my regional settings on the machine to use Hebrew as the locale. This appeared to be a mistake. Once I changed the locale back to English (USA) everything got back to normal and worked absolutely fine (as always).

So, the conclusion is: When you get this error, verify that the machine you are using is set to English Locale and not other locales.

Hope this saves you some time, I know I pulled more then a couple of hairs to find out what is causing this issue.

<img src="http://feeds.feedburner.com/~r/KensoDev-en/~4/bM33grFPuLM" height="1" width="1"/>
Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com