Thread: [openupload-devel] French language with accents character
Status: Beta
Brought to you by:
tsdogs
|
From: Tech M. <tec...@ho...> - 2010-02-08 09:16:35
|
Hello although I set the language to French , when sending an email notification with upload , we have strange characters , the strange character are replacing the accent French character Do you have any Idea how to fix this Thank you in advance _________________________________________________________________ Tchattez en direct en en vidéo avec vos amis ! http://www.windowslive.fr/messenger/ |
|
From: Alessandro B. <ts...@br...> - 2010-02-08 10:46:40
|
It seems a problem with the encoding of the e-mail. Please check what character encoding the client program is using to display the message (i.e. in Thunderbird: Options -> Character encoding" This should be utf-8 (afair), but probably is using iso-8559 Hmm, looking more deeply in the email template I see that the character encoding is fixed to iso-8559-1. Try changing the templates/plugins/email/notify.tpl Change lines: Content-Type: text/plain; charset="iso-8559-1" and Content-Type: text/html; charset="iso-8559-1" to Content-Type: text/plain; charset="utf-8" and Content-Type: text/html; charset="utf-8" to put it more simple replace all iso-8559-1 to utf-8 in the file. :) I should get the language encoding, but have no time now to look at what it should be set to. Let me know. Alessandro Tech Man ha scritto: > Hello > > although I set the language to French , when sending an email > notification with upload , we have strange characters , the strange > character are replacing the accent French character > > Do you have any Idea how to fix this > > Thank you in advance > > > ------------------------------------------------------------------------ > Windows 7 : Trouvez le PC qui vous convient! Découvrez notre offre ! > <http://clk.atdmt.com/FRM/go/181574577/direct/01/> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Openupload-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openupload-devel |
|
From: Tech M. <tec...@ho...> - 2010-02-08 17:23:49
|
Hello thank you for your help I did what you have asked I have better result the only pb now is the subject of the message , still have strange characters ex : Information relative au fichier envoyé: test 2 étè Best Regards _________________________________________________________________ Téléchargez Internet Explorer 8 et surfez sans laisser de trace ! http://clk.atdmt.com/FRM/go/182932252/direct/01/ |
|
From: Alessandro B. <ts...@br...> - 2010-02-09 09:35:47
|
I think your php.ini has magic quotes enabled? Alessandro Tech Man ha scritto: > Hello > > thank you for your help > I did what you have asked > I have better result > the only pb now is the subject of the message , still have strange > characters > > ex : Information relative au fichier envoyé: test 2 étè > > Best Regards > > > > > ------------------------------------------------------------------------ > Vous cherchez l'intégrale des clips de Michael Jackson ? Bing ! Trouvez > ! <http://www.bing.com/videos/search?q=Michael+Jackson&FORM=MVDE6> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Openupload-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openupload-devel |
|
From: Alessandro B. <ts...@br...> - 2010-02-09 09:43:19
|
Actually I do not see that "string" in my french translation file. Maybe you changed it? Alessandro Alessandro Briosi ha scritto: > I think your php.ini has magic quotes enabled? > > Alessandro > > Tech Man ha scritto: >> Hello >> >> thank you for your help >> I did what you have asked >> I have better result >> the only pb now is the subject of the message , still have strange >> characters >> >> ex : Information relative au fichier envoyé: test 2 étè >> >> Best Regards >> >> >> >> >> ------------------------------------------------------------------------ >> Vous cherchez l'intégrale des clips de Michael Jackson ? Bing ! Trouvez >> ! <http://www.bing.com/videos/search?q=Michael+Jackson&FORM=MVDE6> >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> The Planet: dedicated and managed hosting, cloud storage, colocation >> Stay online with enterprise data centers and the best network in the business >> Choose flexible plans and management services without long-term contracts >> Personal 24x7 support from experience hosting pros just a phone call away. >> http://p.sf.net/sfu/theplanet-com >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Openupload-devel mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openupload-devel > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Openupload-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openupload-devel |
|
From: Tech M. <tec...@ho...> - 2010-02-09 11:03:52
|
Hello I put it to off but nothing change I still have strange char in the subject of the mail ex : original subject : test 333été à subject I recieve by mail : test 333&eacute;t&eacute; &agrave; knowing that the body and the description is ok , the accents are well displayed Best Regards _________________________________________________________________ Téléchargez Internet Explorer 8 et surfez sans laisser de trace ! http://clk.atdmt.com/FRM/go/182932252/direct/01/ |
|
From: Alessandro B. <ts...@br...> - 2010-02-09 11:50:25
|
Hi, I have checked the code, but in no place (except for the template) the string gets html escaped, so probably is php, the mail function or even the email client/server, which does this. On my system (linux / apache / php / postfix) / ( thunderbird / squirrelmail ) the message and subject are correct, if I use roundcube the problem is there, (not with html escaped characters though). Imho, the solution whould be to use an escape function at least on the subject. Put this in the lib/general.inc.php line 240 (before the comment /* generate a boundary */ ) $subject = '=?UTF-8?B?'.base64_encode($subject).'?='; This encodes the subject to UTF8 which should solve your problem with strange characters in the subject. Alessandro P.S. This is not really a solution, as it should be applied only on e-mails really containing the incriminated characters. (I think all decent email clients do support this.) Tech Man ha scritto: > > Hello > > I put it to off but nothing change I still have strange char in the > subject of the mail > > ex : > original subject : test 333été à > > subject I recieve by mail : test 333&eacute;t&eacute; &agrave; > > knowing that the body and the description is ok , the accents are well > displayed > > > Best Regards > > > ------------------------------------------------------------------------ > Vous cherchez l'intégrale des clips de Michael Jackson ? Bing ! Trouvez > ! <http://www.bing.com/videos/search?q=Michael+Jackson&FORM=MVDE6> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Openupload-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openupload-devel |
|
From: Tech M. <tec...@ho...> - 2010-02-10 09:37:49
|
hello
still not working , and sorry for annoying you
here is my configs
php.ini
; Magic quotes
;
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off
; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off
lib/general.inc.php :
function sendmail($from,$reply,$to,$subject,$template, $attach = array()) {
$tpl = &app()->tpl;
$tpl->assign('subject',$subject);
$tpl->assign('from',$from);
$tpl->assign('to',$to);
$subject = '=?UTF-8?B?'.base64_encode($subject).'?=';
/* generate a boundary */
templates/default/plugins/email/notify.tpl :
Content-Type: text/plain; charset="utf-8"
Content-Type: text/html; charset="utf-8"
_________________________________________________________________
Découvrez Windows 7 en 7 secondes !
http://clk.atdmt.com/FRM/go/181574577/direct/01/ |
|
From: Alessandro B. <ts...@br...> - 2010-02-10 10:16:53
|
What e-mail client are you using?
Alessandro
Tech Man ha scritto:
> hello
>
> still not working , and sorry for annoying you
>
> here is my configs
>
> php.ini
>
> ; Magic quotes
> ;
>
> ; Magic quotes for incoming GET/POST/Cookie data.
> magic_quotes_gpc = Off
>
> ; Magic quotes for runtime-generated data, e.g. data from SQL, from
> exec(), etc.
> magic_quotes_runtime = Off
>
> ; Use Sybase-style magic quotes (escape ' with '' instead of \').
> magic_quotes_sybase = Off
>
>
> lib/general.inc.php :
>
> function sendmail($from,$reply,$to,$subject,$template, $attach = array()) {
> $tpl = &app()->tpl;
> $tpl->assign('subject',$subject);
> $tpl->assign('from',$from);
> $tpl->assign('to',$to);
> $subject = '=?UTF-8?B?'.base64_encode($subject).'?=';
> /* generate a boundary */
>
>
>
> templates/default/plugins/email/notify.tpl :
>
> Content-Type: text/plain; charset="utf-8"
> Content-Type: text/html; charset="utf-8"
>
>
>
>
> ------------------------------------------------------------------------
> Avec Internet Explorer, surfez en toute discrétion sur internet Cliquez
> ici ! <http://clk.atdmt.com/FRM/go/182932252/direct/01/>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Openupload-devel mailing list
> Ope...@li...
> https://lists.sourceforge.net/lists/listinfo/openupload-devel
|
|
From: Tech M. <tec...@ho...> - 2010-02-10 14:27:49
|
Im using outlook 2007 , but I also have the pb when using horde and firefox using UTF8 Best Regards > Date: Wed, 10 Feb 2010 11:16:32 +0100 > From: ts...@br... > To: ope...@li... > Subject: Re: [openupload-devel] French language with accents character > > What e-mail client are you using? > > Alessandro > _________________________________________________________________ Tchattez en direct en en vidéo avec vos amis ! http://www.windowslive.fr/messenger/ |
|
From: Alessandro B. <ts...@br...> - 2010-03-04 18:52:47
|
Tech Man ha scritto: > Im using outlook 2007 , but I also have the pb when using horde and > firefox using UTF8 > Sorry for the delay, Have you been able to fix this yet? What is bugging me is that you are somehow the subject gets changed to html code. Maybe using html_entity_decode in conjunction with the previous changes to make the subject be utf-8 solves the problem... Try changing the previous modified line with: $subject = '=?UTF-8?B?'.base64_encode(html_entity_decode($subject)).'?='; Let me know. Alessandro |