I have set the encoding to UTF-8 in the document set up and on the page via the inspector but no result. It is only in text that arrives in the mail box that is affected. So is it on the server I need to look? Or where ever the message is sent from - which is where? R
Hi Richard,
This is almost certainly something I need to add to the PHP that the Action creates. I’ve had requests for the Action to support double byte character sets (such as Japanese) and expect the page encoding will need to influence the PHP code added to the -go.php file.
I’ll have a look and see if I can find any good resources on the subject in the hope of adding support to the Action soon.
If anyone can point me to a good example of sending multi-lingual emails with PHP I would certainly be grateful.
Regards,
Tim.
Hi Richard,.
Looking at the code the Action creates and checking what I can find on the subject it would seem that I need to change the email encoding from the existing ISO-8859-1 to UTF-8. Having said this I checked the existing code using the characters you mention below and the resulting email looked OK in Mail here.
As a test I’ve adjusted my test form to use UTF-8 and made you the recipient of the email to allow you to test this yourself. Enter your text in the following form, select yourself as the recipient and hit send. If the text renders correctly in the resulting email then I’ll happily update the Action. http://www.freewayactions.com/test/phpfbf237/
Maybe you can forward the resulting email to me when you get a chance?
Let me know how you get on.
Regards,
Tim.
Thanks for looking at this Tim ands sorry for not getting back sooner. I have just got back in front of my computer and tested your form and I am getting correct accents but apostrophies are being preceded by a / as in d/'interieur or don/'t. I will also set up another PHP form and see what happens with another domain and server
Meanwhile I will forward the whole mail to you at info-at-freewayactions
Thanks for your input on this Richard. I’ve tentatively updated the Action to version 2.3.9 which now sends out UTF-8 encoded emails (which should respect your accented characters) as well as eliminating the escaped quotes which was an oversight in my original code. If the update doesn’t throw up any unforeseen problems in existing sites then these changes will remain in the Action.
Let me know if you experience any further issues with the Action.
Regards,
Tim.
On 13 Oct 2011, at 09:11, Richard Lowther wrote:
Thanks for looking at this Tim ands sorry for not getting back sooner. I have just got back in front of my computer and tested your form and I am getting correct accents but apostrophies are being preceded by a / as in d/'interieur or don/'t. I will also set up another PHP form and see what happens with another domain and server
Meanwhile I will forward the whole mail to you at info-at-freewayactions