Download Problem

Hi there

I've got following strange problem. Follwing code: send_data(originalString, :filename => "foo.bar", :type =>     'text/plain; charset=utf-8' )

I send the file "foo.bar" to the browser. If I save it, the charset isn't utf-8, its "ansi"

What must I change, when I want utf-8?

Greets

Is the problem that the browser thinks it's ansi or are the actual bytes going over the wire 'ansi' ?

Fred

I don't know. But the problem appears with FF (OSX & Vista), Safari and IE7

any idea?

I don't know. But the problem appears with FF (OSX & Vista), Safari
and IE7

My point was that the content_type you pass to send_data won't change
the data, so if what you're pulling out of the database isn't utf8
then the browsers won't see utf8 either.

Fred

Frederick Cheung wrote:

I don't know. But the problem appears with FF (OSX & Vista), Safari
and IE7

My point was that the content_type you pass to send_data won't change the data, so if what you're pulling out of the database isn't utf8 then the browsers won't see utf8 either.

Fred

I think I've to tell the hole story... i must generate a spezial datafile (encrypted xml) for a 3rd party application. the contend is utf-8,but the file itself not... I think it could be a problem with the header-informations? Any idea?

Greets