fread (data.table in R) with specification of encoding

前端 未结 1 1854
悲哀的现实
悲哀的现实 2021-01-17 19:03

Could not find proper answer in previous questions and answers to my problem: 1. I have a 2.3 GB csv file which contains 2.4 million rows of Hebrew Text, currently coded in

相关标签:
1条回答
  • 2021-01-17 19:57

    As of August 25th the case linked by David Arenburg is closed, and the functionality is included in the currently available version of data.table. The encoding parameter can now be used when calling fread:

    text <- fread(file, encoding = 'UTF-8')
    

    ASCII is not an explicit encoding option, but ASCII is valid UTF-8, so you can specify UTF-8 when you want to read your Hebrew text.

    0 讨论(0)
提交回复
热议问题