The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Gazette

Geek Gazette GAZ is a community newsletter management system.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2008, 08:58 AM
OlijO OlijO is offline
Junior Member
 
Join Date: Apr 2007
Posts: 3
Geek Article and Review System License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Question Use for French Users

Hello, I bought the spent year GAZ however I fast abandoned its use because indeed it didn't recognize accents (such as éèÃ*...) does anybody know the solution to correct this bug?
Beforehand thank you.
Reply With Quote
  #2  
Old 05-15-2008, 04:44 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

The charset used to send the newsletter might not necessarily be the charset that is used by the email reader. For example, in a newsletter I sent to myself, the ü in einfügen was changed to ü so in my email reader I saw einfügen (UTF-8) instead of einfügen (ISO-8859-1) though my email reader gave me the following message:
This message was written in a character set other than your own. If it is not displayed correctly, click here to open it in a new window.
Once clicked, the word einfügen appeared correctly. That said, if you know what charset you want to use, look for the following code in the gaz_class_process.php file:
Code:
			$subject = $this->mailobj->encode_email_header(unhtmlspecialchars($subject, $unicode_decode), $encoding, false, false);
And beforehand you can set what charset you would like to try.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 05-17-2008, 07:30 PM
OlijO OlijO is offline
Junior Member
 
Join Date: Apr 2007
Posts: 3
Geek Article and Review System License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Hello, thank's for your reply, could you help me for the code the charset is :
Code:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
How can i change your code?
Code:
$subject = $this->mailobj->encode_email_header(unhtmlspecialchars($subject, $unicode_decode), $encoding, false, false);
Reply With Quote
  #4  
Old 05-17-2008, 07:36 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Before that line add the following and see how it works:
Code:
$message = utf8_decode($message);
$subject = utf8_decode($subject);
$encoding = 'ISO-8859-1';
$unicode_decode = false;
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #5  
Old 05-18-2008, 08:15 AM
OlijO OlijO is offline
Junior Member
 
Join Date: Apr 2007
Posts: 3
Geek Article and Review System License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Quote:
Originally Posted by Morgan View Post
Before that line add the following and see how it works:
Code:
$message = utf8_decode($message);
$subject = utf8_decode($subject);
$encoding = 'ISO-8859-1';
$unicode_decode = false;
Thank's i will try your soluce as soon as possible (end of may).
Reply With Quote
  #6  
Old 05-27-2008, 10:00 AM
jluerken's Avatar
jluerken jluerken is offline
Senior Member
 
Join Date: Oct 2005
Posts: 143
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

Hi Morgan,

can we have a fix in a future version? I don't like the idea to edit files manually.
Every GAZ update you have to remember this and do it again so it should better be included automatically :-)
__________________
Ciao jluerken
EsportBoard
http://www.esportboard.de

Reply With Quote
  #7  
Old 05-28-2008, 04:49 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

The charset used to send the newsletter might not necessarily be the charset that is used by the email reader, so this isn't technically a bug in the code and so the 'fix' isn't going to go in the code, though in the next version a hook can be added so you can use a plugin to avoid a file edit.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GARS 2.0 RC5 French translation [FR05 beta 2] cclaerhout Add-ons 15 06-11-2007 12:20 PM
How can Users subscribe? Julian Geek Gazette 8 05-23-2007 07:52 AM
GARS 2 RC2B French translation FR05 beta cclaerhout Geek Article and Review System 3 07-24-2006 09:58 PM
GARS GOLD 1.0c French translation cclaerhout Add-ons 3 02-11-2006 10:40 AM
Users Other Articles Lizard King Geek Article and Review System 0 11-17-2005 05:40 AM


All times are GMT. The time now is 08:34 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.