Search code examples
iosswiftiphonecsvencoding

swift read xls(excel) content + Hindi + Gujarati Character Encoding issue


read xls(Excel) file with non english character(**not xlsx file)

i have tried all the encoding option but i am unable to read xls file content.

let data = try Data(contentsOf: url)// Document Directory file path
let dataEncoded = String(data: data, encoding: .utf8)

Example enter image description here

Thanks in advance.


Solution

  • resolved my issue through below SDK:

    https://github.com/QuetzalMX/QuetzalXLSReader