I am trying to read UTF-16 file using pyspark dataframe. While reading, if there is a space in the file, it is showing as box while displaying using df.display(). How to read this properly?
df = spark.read.option("delimiter","|") \
.option("header","True") \
.option("encoding", "UTF-16") \
.option("multiline",'True') \
.csv(f"<<path>>")
Error Screenshot: Space in file while reading through dataframe