Problem with German Umlauts - MSSQL Database - rake Migration

Hello all,

I habe the follow Migration Script:

class ImportFirmen < ActiveRecord::Migration
def self.up
f = Mitarbeiter.find(:all, :select => :Firma, :group => :Firma)
f.each do |ff|
Firma.create(:description => ff.Firma)
print “\n”
end
end

def self.down
Firma.delete_all
end

When i use the rake db:migrate command, the German Umlauts will show as
? and write it so in the Database

In the Console this will work fine.

Any Ideas?


Debian 6, ruby 1.8.7, rails 2.3.5, rake 0.9.1

See if this helps:

http://oldwiki.rubyonrails.org/rails/pages/HowToUseUnicodeStrings

There is an ROR forum here where you can ask ROR questions.