开发者

Multiple Charset

开发者 https://www.devze.com 2023-03-08 14:36 出处:网络
The Scenario: I have an web app which has a custom register form integ开发者_高级运维rated to Mailman. When the user submits the form, an Ajax function call a PHP script which stores the data in the d

The Scenario: I have an web app which has a custom register form integ开发者_高级运维rated 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!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号