Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2400

Re: Windows 2008 Server: Reading Text File with Ruby.

From Angelo NN <storm8000@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: Windows 2008 Server: Reading Text File with Ruby.
Date 2011-04-06 14:35 -0500
Organization Service de news de lacave.net
Message-ID <4b3f3961a9695772bb455a21644e06e5@ruby-forum.com> (permalink)
References <3a5099f0e260e4856cd4d6e9c9f09223@ruby-forum.com> <6e73.4d9cc013.54317@roo.daria.co.uk>

Show all headers | View raw


Jonathan Hudson wrote in post #991289:
> On Thu, 7 Apr 2011 04:30:13 +0900, Angelo NN wrote:
>
>> the output:
>> Thank you for your help.
>> 02\x00"
>> irb(main):004:0>
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>>
>
> As it starts with a UTF-16 LE Byte order marker, that's a pretty good
> clue as to the encoding.
>
> -jh

Thank you.

Can you suggest where I can read/etc. about how to change the encoding 
for the imported file?

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Windows 2008 Server: Reading Text File with Ruby. Angelo NN <storm8000@gmail.com> - 2011-04-06 14:30 -0500
  Re: Windows 2008 Server: Reading Text File with Ruby. Jonathan Hudson <jh_ruby-lang@daria.co.uk> - 2011-04-06 14:33 -0500
    Re: Windows 2008 Server: Reading Text File with Ruby. Angelo NN <storm8000@gmail.com> - 2011-04-06 14:35 -0500
      Re: Windows 2008 Server: Reading Text File with Ruby. Jonathan Hudson <jh_ruby-lang@daria.co.uk> - 2011-04-06 14:47 -0500
        Re: Windows 2008 Server: Reading Text File with Ruby. Angelo NN <storm8000@gmail.com> - 2011-04-06 14:58 -0500
          Re: Windows 2008 Server: Reading Text File with Ruby. Jonathan Hudson <jh_ruby-lang@daria.co.uk> - 2011-04-06 15:12 -0500
            Re: Windows 2008 Server: Reading Text File with Ruby. Angelo NN <storm8000@gmail.com> - 2011-04-06 15:15 -0500
          Re: Windows 2008 Server: Reading Text File with Ruby. "F. Senault" <fred@lacave.net> - 2011-04-06 22:45 +0200

csiph-web