You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by "lianyou1225@126.com" <li...@126.com> on 2023/04/30 08:18:48 UTC

How to read text files with GBK encoding in the spark core

Hello all,

Is there any way to use the pyspark core to read some text files with GBK encoding?
Although the pyspark sql has an option to set the encoding, but these text files are not structural format.
Any advices are appreciated.

Thank you
lianyou Li