title: How to delete non-printable character in rdd using pyspark
body: <p>Need to remove non-printable characters from rdd.</p>
  
  <p>Sample data is below</p>
  
  <pre><code>"@TSX•","None"
  "@MJU•","None"
  </code></pre>
  
  <p>expected output </p>
  
  <pre><code>@TSX,None
  @MJU,None
  </code></pre>
  
  <p>Tried below code but its not working </p>
  
  <pre><code>sqlContext.read.option("sep", ","). \
                  option("encoding", "ISO-8859-1"). \
                  option("mode", "PERMISSIVE").csv(&lt;path&gt;).rdd.map(lambda s: s.replace("\xe2",""))
  </code></pre>