Forums

special chars (french accents "é è à") in uploaded filenames

platipalapi 13 Apr, 2010
Hi,

my form is working quite good, on a french website.
When user fills in the form with accents, they get displayed correctly in the confirmation page and in the emails.
But there is an upload field in my form, and i've set the filename to be composed of the last and firstname of the user.

My problem is that if the user full name is "Régis Valéry", for instance, the file name becomes
Régis_Valéry.jpg

I also get the values passed to Paypal (using the redirect plugin) being altered the same way.

My website is hosted on a US server, but my default language in Joomla is set to French. Maybe it's because of it ? If so, what can i do to fix this ?

thanks
platipalapi 13 Apr, 2010
ahah, i've just found, so i'll reply to myself, if it can help others.

so for the filename issue, in my template index.php file, i had to add :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

(right below the <html type="...> tag)

and for the variables passed to paypal, i actually found an option in the preferences of the paypal account : you can change the encoding language for your transactions. So i also set it to UTF-8, and the trick was done.
This topic is locked and no more replies can be posted.