The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Forms do not support characters with accents (French) - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Forms do not support characters with accents (French) (/showthread.php?tid=716) |
Forms do not support characters with accents (French) - dand33 - May 26th, 2010 Hi, Form Tools is an excellent tool for managing web form. But I have a problem with my French version of the web forms. Soon as I write a word with an accent the rest of the fiend does not follow in the database as well as in the admin message. Exemple: Hélène... all I get in the database is H My form are in "charset=iso-8859-1"... With a simple PHP script, the message I received is complete but not with Form Tools. My database is ok because I can make a correction on a data (form subscription) the database keep the accent as I changed it. The problem seems to be in the transfer of the information from Form Tools and the database and Swift Mailer. Could someone give me some help on this ? Thanks a lot... RE: Forms do not support characters with accents (French) - Nowton - May 27th, 2010 Upgrade to the 2.01 beta, this will fix it. (May 26th, 2010, 7:59 AM)dand33 Wrote: Hi, I stand corrected, we have the same problem with Spanish forms. Apparently character-escaping issues...again. (May 27th, 2010, 1:48 AM)Nowton Wrote: Upgrade to the 2.01 beta, this will fix it. RE: Forms do not support characters with accents (French) - Ben - May 27th, 2010 Hey guys, No, it's probably not a character escaping issue. Most likely, you may need to tell the server that the form request is in a particular charset. Try adding the following attribute to your form tag: <form ... accept-charset="UTF-8"> (utf8 should work fine, but you can change it to accept-charset="ISO-8859-1" if you like). Let me know how it goes! - Ben RE: Forms do not support characters with accents (French) - dand33 - Jun 1st, 2010 Hi Ben, No, sorry, it did not works Here's the result: First Name H?l?ne (should be Hélène) Last Name L?veill (should be Léveillée) My database is in Latin1_general_ci, would it be better if I change it for utf-8_general_ci ? Thank You for your help RE: Forms do not support characters with accents (French) - Ben - Jun 2nd, 2010 Hi dand - yes, very possibly. After changing it, put through another submission with the French characters and see if they show up propertly (existing submissions may still not work). - Ben RE: Forms do not support characters with accents (French) - dand33 - Jun 10th, 2010 Very strange... I have created another form and added the // accept-charset="ISO-8859-1" // and I still have the same results. I can interpret the results and change it in the database but really, I don't understand... I will continue to make some reasearch Thank You for your help Ben... RE: Forms do not support characters with accents (French) - lsendoya - Aug 18th, 2010 As for formTools API 2.0.3-beta-20100731, I believe that any issues with non English characters can be solved changing the global\library.php config file at line 97: Code: $g_unicode = true; the comment says clearly: Code: * This offers support for unicode. All form submissions will be sent as UTF-8. This is enabled for all So if you have non UTF-8 forms, you should change line 97 to Code: $g_unicode = false; in order to display properly non English characters or non UTF-8 forms. Hope it helps somebody. RE: Forms do not support characters with accents (French) - dand33 - Aug 24th, 2010 Hey Everybody... With this ($g_unicode = false ![]() Thank You All and especially the Rabbit! RE: Forms do not support characters with accents (French) - Ben - Aug 28th, 2010 The Rabbit is wise ![]() (Good to know, thanks Luis!) |