Perspective CSV File Upload Not Matching CSV File

I'm attempting to import a csv file into Ignition using the file upload component in a perspective client. I created a super simple CSV file and saved as a CSV. I would like to print to the console the contents of every row but instead of getting every row I get what appears to be a number as in the byte representation of each character of the row. This should be simple enough and I do this sort of thing in vision without issue. I searched all through the forum and I cannot find a similar issue and the docs are not clear about how to proceed. I've played with different ways of doing the code and here is where it currently stands and the results. Any help would be appreciated.
And this is what prints to the console:

But the CSV file looks like this

event.file.getBytes() is returning, as the name implies, the byte array (binary) contents of the file.
To decode it as text, you need to assume a character encoding, such as UTF-8. You need to make a string-like, file-like object for Python's csv module, which you can do with the StringIO module:

1 Like