Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.ruby Subject: Re: Download problem: invalid codepoint 0x... in UTF-8 Date: Tue, 12 Jan 2016 19:31:43 +0100 Lines: 36 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: individual.net 7H+JtrVcdwxunKaAY6idvQywog9ofjfLfFQTj9c92JwI7wxBA= Cancel-Lock: sha1:h0qMyTTEGCT5+Ve+vuR1c7w9oBo= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: Xref: csiph.com comp.lang.ruby:7186 On 12.01.2016 13:09, Michael Uplawski wrote: > HI again. > > Additional information. > > On Tue, 12 Jan 2016 10:32:47 +0100, > Michael Uplawski wrote: >> What does this error point at? My connection is at the moment very ver= y >> crappy, i.e. ideal to test my download manager. I venture, that the >> =E2=80=9Cinvalid codepoint=E2=80=9D problem is related to the fact tha= t my >> satellite-connection tends to suffer interruptions during my attempt t= o >> get a file from the Internet, but cannot be sure. > > However, wget -c works for the same file. Connection-problems or not, m= y > ruby-routines appear to do something different. I will try to see and > understand the wget source-code, but would all the same appreciate your= > assistence. You are probably using a wrong encoding to convert bytes to a String.=20 Note that this conversion might be implicit somewhere. You would have=20 to trace the line triggering the error. Kind regards robert --=20 remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/