Marcos Inajar
Marcos Inajar

Reputation: 1

Multiple Charset

The Scenario: I have an web app which has a custom register form integrated to Mailman. When the user submits the form, an Ajax function call a PHP script which stores the data in the database. The call back of this function submit to Mailman register form, which adds the user to a mail list.

The Problem: the Mailman register form is having a problem when I submit special characters, like: ç, é, í, ó, etc. All these characters are converted to strange characters. For example, if I submit "Módulo", the Mailman receives "Médulo".

How can I some this problem?

Important: the form of my web app uses UTF8. I think Mailman is using: ISO-8859-1. Can I convert the values of the fields only when the form is being submitted?

Thank you!

Upvotes: 0

Views: 1204

Answers (1)

Ryan
Ryan

Reputation: 28177

You can, yes. Use mb-convert-encoding.

Upvotes: 1

Related Questions