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

S

Stefan Fischer

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.
 
D

David Wright

Stefan said:
... which reads data from a multipart-form.
...
Hmmm, CGI::new :)accept_charset => 'utf-8') doesn't help.
...


Maybe try adding
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
and
<form accept-charset="UTF-8"> to the multipart-form.
 
S

Stefan Fischer

Am 22.02.10 18:45, schrieb David Wright:
<form accept-charset="UTF-8"> 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top