| Previous topic :: Next topic |
| Author |
Message |
pzoltan
Joined: 09 Aug 2007
Posts: 3
Location: Budapest, Hungary
|
| Posted: Wed Apr 16, 2008 12:35 am Post subject: Webmail body does not render anything after Hungarian char. |
|
|
Hi,
We have installed 5.0.4 version of Vtiger on Ubuntu 7.10. We use UTF-8 encoding. We started to test this version with webmail. We found a problem with webmail when we use 'special' (Hungarian: öüóúéáí) characters in the mail body. We have not problem with English char. set. I haven't find similar bug or forum message.
So, when we receive an email with Hungarian character in the body, the webmail did not render anything after the first 'Hungarian'l char. When we send an email from Vtiger we haven't any problem with it.
We have other webmail client (Squirrel) without this problem. We tried Gmail and the situation was the same. See the attached screen grabs.
If you can't suggest any workaround for the problem I will have to write a ticket in the Track.
Any suggestion wellcome :)
Thanks for you help.
Zoltan Petrovan
eflow Kft.
Hungary |
|
| Back to top |
|
prasad.a
Joined: 01 Aug 2007
Posts: 968
|
| Posted: Wed Apr 16, 2008 2:30 am Post subject: Webmail body does not render anything after Hungarian char.& |
|
|
Hi pzoltan,
Can you please check if the issue you are pointing out is same as the one on our issue tracker: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5201
Regards,
Prasad
vtiger Team |
|
| Back to top |
|
tuomole
Joined: 14 Apr 2008
Posts: 1
|
| Posted: Wed Apr 16, 2008 7:58 am Post subject: Webmail body does not render anything after Hungarian char.& |
|
|
Hi,
We have the same problem here, with some scandinavian characters ä, ö and å. The body displays correctly, until any of these characters appear. Then, rest of the body is blank.
I tried the Prasad's fix mentioned in the issue tracker but it didn't help.
-Tuomo |
|
| Back to top |
|
chrispi
Joined: 09 May 2007
Posts: 14
|
| Posted: Wed Apr 16, 2008 10:21 am Post subject: Webmail body does not render anything after Hungarian char.& |
|
|
@prasad.a:
We have the same problem, and it's different from #5201 in the trac. Actually, #5201 describes a problem with badly encoded characters that do not show up properly.
With the problem we have (and pzoltan seems to have as well), this is different: the message actually /breaks/ starting from the first special character. That is, even if all the rest of the email contains regular international characters only, they won't show up either. Or to be a bit more technical: after the first special character, all of the message is missing even in the generated HTML. There is nothing suspicious in the HTML though (no queer chars or tags) and the following footer part of the site also gets included correctly. Just missing the rest of the message.
We suspected an incompatibility problem with our email server's setup and "solved" it by simply not using the webmail. But if it can also happen with gmail, the problem seems to be a bit more general...
Maybe that helps... if you need some information about the email server setup/configuration I can ask for that.
Oh, BTW... same problem existed in 5.0.3 already. |
|
| Back to top |
|
pzoltan
Joined: 09 Aug 2007
Posts: 3
Location: Budapest, Hungary
|
| Posted: Wed Apr 16, 2008 5:21 pm Post subject: Webmail body does not render anything after Hungarian char.& |
|
|
Hi Folks,
The issue #5201 in the trac doesn't solve the problem.
In our configuration the Vtiger and the email server are on the same server.
I've tried a vTiger Windows package on Windows XP with the same result.
BUT !!!!
We followed the email processing in th body.php and webmail.php. We found that the $default_charset has not been setting in the webmails.php.
So we brutally set it with inserting this line :
#772 $GLOBALS['charset'] = 'UTF-8';
before this
#773 if(empty($GLOBALS['charset'])) $GLOBALS['charset'] = $default_charset;
After all everything work well. I think this is not too sophisticated solution but help to find and solve the problem.
I hope this help. Best Regards
Zoltan
ps.: Thanks to my collegaue, Gyuri who helped me. |
|
| Back to top |
|
prasad.a
Joined: 01 Aug 2007
Posts: 968
|
| Posted: Wed Apr 16, 2008 6:31 pm Post subject: Webmail body does not render anything after Hungarian char.& |
|
|
Hi Zoltan,
Thank you for sharing you observation. I have updated the comment on ticket now.
http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5201
Special thanks to your colleague, Gyuri :)
Regards,
Prasad
vtiger Team |
|
| Back to top |
|
cDGo IT Consultancy
Joined: 06 Jan 2007
Posts: 29
|
| Posted: Wed Apr 16, 2008 7:08 pm Post subject: Re: Webmail body does not render anything after Hungarian ch |
|
|
Hi Zoltan,
This works for me too.
Great work.
Regards,
Dom :arrow: é |
|
| Back to top |
|
cDGo IT Consultancy
Joined: 06 Jan 2007
Posts: 29
|
| Posted: Wed Apr 16, 2008 7:27 pm Post subject: Re: Webmail body does not render anything after Hungarian ch |
|
|
What I did:
I replaced every instance of $GLOBALS['charset'] with $GLOBALS['default_charset']
It than uses the value enter in config.inc.php:
// default charset
// default charset default value = ISO-8859-1
$default_charset = 'UTF-8'; |
|
| Back to top |
|
pzoltan
Joined: 09 Aug 2007
Posts: 3
Location: Budapest, Hungary
|
| Posted: Thu Apr 17, 2008 12:25 pm Post subject: Re: Webmail body does not render anything after Hungarian ch |
|
|
Thanks, $GLOBALS['default_charset'] better :)
Zoltan |
|
| Back to top |
|
| |