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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?