title: Java Spark Data Encoding
body: <p>Is there a way to set the encoding in SparkConf? I'm building a Java application with Spark that processes Arabic data. When I run it in the dev environment with Spark Master set to Local[*], data is processed correctly. However, when I prepare the JAR and submit it to Spark Cluster, data seems to need encoding.<br>
  I used:</p>
  
  <pre><code>--conf spark.driver.extraJavaOptions=-Dfile.encoding=UTF-8
  </code></pre>
  
  <p>as configuration in Spark submit, but didn't work.<br>
  OS: Windows 10
  Java 1.8.0.131<br>
  Spark 2.1.0</p>