Support Forums

Special character in email subject

This is a discussion on Special character in email subject within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, I am trying to display accented characters in the Subject of messages sent for renewal. the characters seem to ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 09-24-2009, 12:11 PM   #1
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 289
Rep Power: 22
hel68c is just really nice hel68c is just really nice
Default Special character in email subject

Hi,

I am trying to display accented characters in the Subject of messages sent for renewal. the characters seem to be filtered.

In the example below, the accent character in the variable $title are well display but the character "�" is replace with a blank character.

Quote:
{assign var='subject' value="Votre annonce '$title' est � la limite de son terme et est sur le point d'expirer!"}
Do you know how to put accent character in a Subject?
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-24-2009, 12:25 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Why not use the code à in the email template and see if that resolves it.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 09-24-2009, 12:39 PM   #3
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 289
Rep Power: 22
hel68c is just really nice hel68c is just really nice
Default

I tried and it display the à not the � .
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-24-2009, 01:33 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I see that smarty.const.MAIL_RECIEPT_SUBJ is not defined in the french.php file but it is in the english.php and spanish.php file .

Try defining it in the french.php file yourself.

I also note that a number of MAIL_ variables between the english.php and french.php files are missing. Well it is in my release * @version $Revision: 284 $ . Put the two files side by side and check them out. The two files look quite different. I can only talk about my version/release though.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 09-24-2009, 01:45 PM   #5
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 289
Rep Power: 22
hel68c is just really nice hel68c is just really nice
Default

I don't have the multilingual Module. I made my own modification.

I found the problem. I used Dreamweaver and I forgot to save my page encoding in UTF-8.

Now it work perfectly.

Thank you seymourjames for your help.
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-24-2009, 01:57 PM   #6
Staff
 
Join Date: Mar 2006
Posts: 587
Rep Power: 34
Blair will become famous soon enough
Default

Quote:
Originally Posted by hel68c
I don't have the multilingual Module. I made my own modification.
The file to which SJ is referring is the language/french.php file. This is a file that comes with 68 Classifieds, not a module
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline   Reply With Quote
Old 09-24-2009, 02:05 PM   #7
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 289
Rep Power: 22
hel68c is just really nice hel68c is just really nice
Default

It seem that in my version, it is not defined at all.

What smarty.const.MAIL_RECIEPT_SUBJ it supposed to do?
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Old 09-24-2009, 02:13 PM   #8
Staff
 
Join Date: Mar 2006
Posts: 587
Rep Power: 34
Blair will become famous soon enough
Default

Quote:
Originally Posted by hel68c
It seem that in my version, it is not defined at all.

What smarty.const.MAIL_RECIEPT_SUBJ it supposed to do?
It inserts the value of MAIL_RECIEPT_SUBJ that is defined in the language file you are using.
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline   Reply With Quote
Old 09-24-2009, 02:26 PM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Blair, I think there may be some missing constants from the french.php. I can only say that about my version/release.

Hel68C - you do have your french.php language file set don't you? In other words it is set in your admin control panel.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 09-24-2009, 02:28 PM   #10
Customer
 
hel68c's Avatar
 
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 289
Rep Power: 22
hel68c is just really nice hel68c is just really nice
Default

So can I used it like this?

define in my language file
Quote:
define ('MAIL_RECIEPT_SUBJ','Your listing is about to expire')
and used it in the template like that:

Quote:
{$MAIL_RECIEPT_SUBJ}
If you would like this ad to continue being seen please visit
__________________
Serge
HobbyClassified.com
V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News,Youtube, Seller Store)
hel68c is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smarty special character hel68c Technical Support 13 02-20-2009 03:31 PM
email subject anna245 Technical Support 2 06-11-2008 07:12 AM


All times are GMT -4. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0