Hello Guys!,

I'm beginning with ruby, and I've a problem with a console app. I was
looking since yesterday but nothing worked. Then I write to you for get
help.

Below I paste my code and the results. I running in Win7 and ruby 192


#! /usr/bin/ruby
# encoding: UTF-8

require 'iconv'
require 'rubygems'
require "mysql"
require 'nokogiri'
require './lib/mihttp.rb'

# encoding: utf-8
`chcp 852` #change cmd encoding to unicode
puts 'ser test '

utf8   = ""
puts utf8

latin1 = utf8.encode("iso-8859-1")
puts latin1

 exit


Also, I tried with gems:  iconv, magic_encoding...; add lines
Encoding.default_internal and external. But I get same results.. I don't
know what's wrong!

C:\Work\RubysApps>ruby hello.rb
ser¨§ test
¨§¨§¨¢¨§¨§¨§


C:\Work\RubysApps>ruby hello.rb
hello.rb:1: invalid multibyte char (US-ASCII)

C:\Work\RubysApps>ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]


Thanks
M
PS: Sorry by my horrible english!