The sourcefile is ISO-8859 (because of bad editor) - (( I want to solve the
ruby-problem, but if we have vi-experts: after :set enc=utf8 :x the file is
still iso?! ))
How can I input an Umlaut,
or can get rid of "invalid multibyte char (utf8)"
Datafile is in utf-8, so the error comes from the source.
Google tells much of Ruby 1.9, but all that didnt help.
x.rb:
!#/usr/bin/ruby
# Encoding: xxx
# encoding=xxx
p __ENCODING__
# shows "#<Encoding:UTF-8>" (and no error)
# Ruby version 2.3.0
Sure you'll get the same results...
./x.rb
On Thu, Apr 21, 2016 at 9:11 AM, A Berger <aberger7890@gmail.com> wrote:
x.rb:
!#/usr/bin/ruby
# Encoding: xxx
# encoding=xxx
p __ENCODING__
# shows "#<Encoding:UTF-8>" (and no error)
# Ruby version 2.3.0
Sure you'll get the same results...
./x.rb
x.rb:
!#/usr/bin/ruby
# Encoding: xxx
# encoding=xxx
p __ENCODING__
# shows "#<Encoding:UTF-8>" (and no error)
# Ruby version 2.3.0
Sure you'll get the same results...
No! I already said it works fine for me (using 2.3.0).
Note that the shebang line in your code is wrong;
you really shouldn't expect us to try and figure out what
your problem is when you are too careless or lazy to post
the correct code.
And get a proper mail client and/or editor or whatever it is
that doesn't allow you to copy&paste or you'll never be able
to work productively.