CGI (read multipart form): Accept-Charset encoding error (CGI::InvalidEncoding)

Hello,

I’m working on a parser for race-simulation logs, which read data from a
multipart-form. It works fine under 1.8.x, but running on 1.9.1 it stops
with:

"/usr/lib/ruby/ 1.9.1/cgi/core.rb:498:in `read_multipart’: Accept
Charset encoding error (cgi:: InvalidEncoding) "

Hmmm, CGI::new (:accept_charset => ‘utf-8’) doesn’t help.

Any hints for me?

Greetings, Stefan.

Stefan Fischer wrote:

… which reads data from a multipart-form.

Hmmm, CGI::new (:accept_charset => ‘utf-8’) doesn’t help.

Maybe try adding

and to the multipart-form.

Am 22.02.10 18:45, schrieb David W.:

to the multipart-form.

Works, but “ISO-8859-1” did not. I’m a beginner in cgi-programming.

Anyway, thanks for your help.

Greets, Stefan.