Know if the file type is a csv-UTF-8 before importing

Hello I’m using the import action in the header of the resource den list page. What I want to achieve is that when you load the file as well as detect if you upload an extension other than csv or txt you can detect that it is a csv that does not have UTF-8 format How can I do that? I am not at the computer where I work in my office so I cannot share the code of what I have done trying to achieve what I require.
2 Replies
toeknee
toeknee2w ago
In theory a validator for this for the field with a utf-8 validator
bajawebmaster
bajawebmasterOP2w ago
Hello. Thank you for your answer. But I did the test saving an Excel with the option to save as csv UTF-8 (COMMA DELIMITED) and another with the option to save as csv (COMMA DELIMITED) and when uploading the second file are UTF-8 accepts it and gives me an error in the last row to register, but with the other file saved with UTF-8 I create all the rows containing the csv without problems. That’s why I need to be able to validate that the csv file is UTF-8

Did you find this page helpful?