Summary | Word paste document |
Queue | Horde Base |
Queue Version | 3.0.1 |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | |
Requester | ralph (at) islandroots (dot) ca |
Created | 06/03/2005 (7303 days ago) |
Due | |
Updated | 03/24/2008 (6278 days ago) |
Assigned | 12/19/2007 (6374 days ago) |
Resolved | 01/16/2008 (6346 days ago) |
Milestone | |
Patch | No |
think the best solution is to teach users. There is no golden way to
handle this. At least until PHP or browsers provide a better way to
reliably detect charsets.
it? Can we ask the user to manually choose another character set if
their message won't fit in ASCII, but they're using the default of
ASCII? Dropping the extra characters silently is not user-friendly.
the UTF-8 support in email clients is still not that widespread yet,
and the market is much more diverse too.
something similar to Data_ldif's _is_safe_string() check? The user
always has the option to override this...
$str = "שלום";
echo mb_detect_encoding($str, "ASCII, ISO-8859-15, ISO-8859-1,
ISO-8859-2, KOI8-R, ISO-8859-7, ISO-8859-6, ISO-8859-8, ISO-2022-JP,
BIG-5, EUC-KR, UTF-8") . "\n";
to select a character set at all? Fat mail clients (including
Mail.app and alpine) seem to detect the character set automatically
(with the option to override).
Don't we want that feature?
State ⇒ Not A Bug
non-printing char that isn't visible, the user will just be confused.
I would be fine with running a smart-quotes-fixing function (we have
the cleanascii text_filter routine already) if we're in ascii or
iso-8859-1, but otherwise I think this goes back to being Not A Bug.
New Attachment: compose.js.patch
ascii is not what we want to do.
pith/send.c:set_charset_possibly_to_ascii(), which does exactly this.
If no-non-ASCII characters are found, then convert text to ASCII.
crazy to check for character set conversion problems and warn the
user before sending?
ISO-8859-1 when UTF-8 isn't needed?
might need from an utf-8 stream.
crazy to check for character set conversion problems and warn the user
before sending? Or make UTF-8 the default and downgrade to ISO-8859-1
when UTF-8 isn't needed?
in the compose view, those characters are probably rendered fine at
the recipient.
is set to utf8. Why is character set conversion happening?
http://shiflett.org/blog/2005/oct/convert-smart-quotes-with-php
function convert_smart_quotes($string)
{
$search = array(chr(145),
chr(146),
chr(147),
chr(148),
chr(151));
$replace = array("'",
"'",
'"',
'"',
'-');
return str_replace($search, $replace, $string);
}
State ⇒ Not A Bug
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ Horde Base
Type ⇒ Bug
Summary ⇒ Word paste document
letter it looks fine. However, when it issent and received, all
quotes, apostrophies and dashes(" ' - ) are turned into question marks
(?) in the text.