rewayat / rewayat-db

0 stars 0 forks source link

extract data from csv data #2

Closed elkasimi closed 4 years ago

elkasimi commented 4 years ago

See If we can extract data from: https://github.com/ceefour/hadith-islamware

acbeni commented 4 years ago

for the splitting issue i tried the code

Arrays.stream(text.split("\\|")).forEach(System.out::println);

and it works totally fine

Also i came across this website which would allow you to check the unicode of a charachter http://unicode.scarfboy.com

However i don't get what the numbers mean at the hadith start |1|7 ....? 😅

acbeni commented 4 years ago

ok i feel stupid :disappointed: actually just use https://github.com/osiegmar/FastCSV or any csv parsing library and specify | as a separator

elkasimi commented 4 years ago

Thanks a lot! In fact I found the same. But still feel it is weird that Comma Separated Values (CSV) can be Pipe Separated Values :)