Is that possible to read a encoded text file using nokogiri?

15 views
Skip to first unread message

Muthukkaruppan SP

unread,
Nov 7, 2017, 11:40:14 AM11/7/17
to nokogiri-talk
Hi,

I'm trying to read a text file, in which few lines are encoded. By using normal File.read() I'm unable to read those line and the block terminates before reading those lines.

Thanks,
Muthu

Hassan Schroeder

unread,
Nov 7, 2017, 11:58:55 AM11/7/17
to nokogi...@googlegroups.com
What does "encoded" mean? And what file mode are you using?

Showing us the code and an example of the file in question would help.

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Walter Lee Davis

unread,
Nov 7, 2017, 12:57:44 PM11/7/17
to nokogi...@googlegroups.com
Do you mean that the file consists of a few (very long) lines? Are you hitting a memory limit trying to read in one or two of those lines?

Walter
> --
> You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
> To post to this group, send email to nokogi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/nokogiri-talk.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages