Severe Torture
Severe Torture

Reputation: 319

Firefox use another charset when send form

I have problem with Firefox browser. On page I have "form" and when I submit this "form" then my webpage change charset from "utf-8" to "Windows-1250". When I go to another place in page then charset go back to "utf-8". This problem is only in Firefox in another browser works everything fine (Chrome, Opera, IE - I can check this in Safari etc..)
I search on internet a lot of time, but I found nothing. Some way is via Ajax or change something in Firefox or get some plugin, but I need solution which can work for everyone without change something in browser. Because clients must have correct default charset => no some "alert" with information what they must change on their pc. I have Firefox 27.0.1.

I have this codes:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="cs" />
<form accept-charset="utf-8" action="poslat.html" onsubmit="this.action=''; return kontrola_udaju_vlozit_inzerat(this);" method="post" enctype="multipart/form-data">

Attribute "accept-charset" don´t help me. And all of pages (php, js) are in UTF-8. I have this problem on 3 sites (I mean) and this type of problem have some peoples on internet and for that I mean this is Firefox bug but I need solved it.

Can anyone help me?

Upvotes: 2

Views: 1453

Answers (1)

Michal - wereda-net
Michal - wereda-net

Reputation: 959

I found a workaround /not a solution/ : redirect to specified url instead of displaying the same page after form submit

just a few minutes later found solution: I added a line to htaccess:

AddDefaultCharset utf-8

works :) in my page

Upvotes: 1

Related Questions