|
Fetch email failure if email contains accent
|
|
|
Category Unknown |
Affected Version 1.6 Stable |
Priority 1 - Highest |
Status Unconfirmed |
Fixed Version (none) |
|
Submitted 01-18-2011 |
|
|
|
Assigned Users
(none)
|
Tags
(none)
|
|
01-18-2011 02:14 PM
|
|
|
|
Fetch email failure if email contains accent
Every email with accent in Spanish language is not going into osTicket, is ignored and remain into email account.
Any help?
Regards !!!
|
01-18-2011 03:23 PM
|
|
|
|
I resolved with this post of Antarex:
antarex antarex is offline
Junior Member
It seems that the ' problem occur after the patch of mimeDecode... thus i reverted back, i've installed the latest official Pear mimeDecode (1.5.4)... but of course, the problem of UTF-8 encoded messages occur again... utf8_encode does not work correctly with allready UTF-8 encoded strings...
I've then modified pipe.php to replace the utf8_encode function with mb_convert_encoding and mb_detect_encoding:
Quote:
// $var['message']=utf8_encode(Format::stripEmptyLines($body));
$string=Format::stripEmptyLines($body);
$var['message']=mb_convert_encoding($string, "UTF-8", mb_detect_encoding($string, "UTF-8, ISO-8859-1, ISO-8859-15", true));
I've done the same with other occurrences of utf8_encode in pipe.php...
It's not perfect yet, but it's much better... accentuated characters are correctly handled, the only detail is that the ' character is now stripped... i prefer that than a whole mail truncated...
|
 |
All times are GMT -4. The time now is 09:17 PM.