DEV Community

Patryk Woziński
Patryk Woziński

Posted on

2

Working with CSV in Elixir

Hi guys!
I'm not sure if asking here is okay, but let's try. I have a question about working with CSV files uploading, etc. How are you dealing with different encodings in Elixir? I was looking for some packages to process csv but unfortunately, I found only a few (2?) libraries that are not too weak. And... the problems is that - these libraries expect from me to define encoding/charset of an uploaded file. It's okay if you're working on some-static files, but I want to give my user's ability to upload a file with any encoding and my application should detect which of encoding it is (German characters, Polish, and so on). I wasted time because the same solution in Python would take 10% of the time with production-ready solution. :( Python/Java/C++ have a library like UnviersalDetector, but for Elixir I can not find anything similar to this.

Do you have any tips/tricks for a new guy like me in this technology?

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay