<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Databricks not able to preserve special character while writing data in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-not-able-to-preserve-special-character-while-writing/m-p/76780#M35318</link>
    <description>&lt;P&gt;I am trying to write data in csv format&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(df. coalesce(1) write&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;format("csv")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;option ("header",&lt;/SPAN&gt;&lt;SPAN&gt;"true")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Option (" sep",&lt;/SPAN&gt;&lt;SPAN&gt;"|시")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;option("encoding", "UTF-8”)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;mode ("overwrite")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;save("/mnt/Filestore/data/job1))&lt;/SPAN&gt;&lt;SPAN&gt;Now here the problem is - there is one column in this data frame df with some value starting with a ? Enclosed in square box.&lt;/SPAN&gt;&lt;SPAN&gt;we can read this data from source query in this df but after writing using above code , that special character is missing in csv file. Even if I read data in databricks, this special character is missing.&lt;/SPAN&gt;&lt;SPAN&gt;could you please suggest what can be the solution here to preserve this character&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 04 Jul 2024 16:03:02 GMT</pubDate>
    <dc:creator>Priya_Data_Eng</dc:creator>
    <dc:date>2024-07-04T16:03:02Z</dc:date>
    <item>
      <title>Databricks not able to preserve special character while writing data</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-not-able-to-preserve-special-character-while-writing/m-p/76780#M35318</link>
      <description>&lt;P&gt;I am trying to write data in csv format&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(df. coalesce(1) write&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;format("csv")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;option ("header",&lt;/SPAN&gt;&lt;SPAN&gt;"true")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Option (" sep",&lt;/SPAN&gt;&lt;SPAN&gt;"|시")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;option("encoding", "UTF-8”)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;mode ("overwrite")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;save("/mnt/Filestore/data/job1))&lt;/SPAN&gt;&lt;SPAN&gt;Now here the problem is - there is one column in this data frame df with some value starting with a ? Enclosed in square box.&lt;/SPAN&gt;&lt;SPAN&gt;we can read this data from source query in this df but after writing using above code , that special character is missing in csv file. Even if I read data in databricks, this special character is missing.&lt;/SPAN&gt;&lt;SPAN&gt;could you please suggest what can be the solution here to preserve this character&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 04 Jul 2024 16:03:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-not-able-to-preserve-special-character-while-writing/m-p/76780#M35318</guid>
      <dc:creator>Priya_Data_Eng</dc:creator>
      <dc:date>2024-07-04T16:03:02Z</dc:date>
    </item>
  </channel>
</rss>

