在找有什麼方法可以把 ods/xls 轉成 csv (或 sqlite 可讀的格式) 又適合在 server 上跑的,除了把 libreoffice 全家桶裝進來,有找到 orcus 和 pandas 。

orcus 不能處理儲存格裡有換行符的情況 (對我知道很糙,但理論上雙引號內的換行符是語法正確的),轉成 json 也沒有對換行符處理,變成語法錯誤的 json。

pandas 還沒試,但應該需要把整個檔案讀進來?檔案有點大所以不確定適不適合。

0

If you have a fediverse account, you can quote this note from your own instance. Search https://taiwan.wtf/users/gholk/statuses/115534691670047507 on your instance and quote it. (Note that quoting is not supported in Mastodon.)