<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Word paste document</title> 
  <pubDate>Fri, 10 Apr 2026 12:09:56 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/2072</link> 
  <atom:link rel="self" type="application/rss+xml" title="Word paste document" href="https://bugs.horde.org/ticket/2072/rss" /> 
  <description>Word paste document</description> 
 
   
   
  <item> 
   <title>When I cut and paste  a Word text document  into a new Horde</title> 
   <description>When I cut and paste  a Word text document  into a new Horde email letter it looks fine. However, when it issent and received, all quotes, apostrophies and dashes(&quot; &#039; - ) are turned into question marks (?) in the text.</description> 
   <pubDate>Fri, 03 Jun 2005 02:03:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t8836</link> 
  </item> 
   
  <item> 
   <title>Word uses illegal characters. We can&#039;t really do much about </title> 
   <description>Word uses illegal characters. We can&#039;t really do much about it.</description> 
   <pubDate>Fri, 03 Jun 2005 02:11:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t8837</link> 
  </item> 
   
  <item> 
   <title>Can&#039;t we convert the illegal characters using something like</title> 
   <description>Can&#039;t we convert the illegal characters using something like this code:



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(&quot;&#039;&quot;, 

                     &quot;&#039;&quot;, 

                     &#039;&quot;&#039;, 

                     &#039;&quot;&#039;, 

                     &#039;-&#039;); 

 

    return str_replace($search, $replace, $string); 

} </description> 
   <pubDate>Mon, 17 Dec 2007 20:13:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t39992</link> 
  </item> 
   
  <item> 
   <title>This won&#039;t help. It&#039;s a charset conversion problem.</title> 
   <description>This won&#039;t help. It&#039;s a charset conversion problem.</description> 
   <pubDate>Mon, 17 Dec 2007 22:53:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t39998</link> 
  </item> 
   
  <item> 
   <title>My source document is utf8.  It&#039;s a plain text file.  And th</title> 
   <description>My source document is utf8.  It&#039;s a plain text file.  And the IMP UI is set to utf8.  Why is character set conversion happening?</description> 
   <pubDate>Mon, 17 Dec 2007 23:09:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t40002</link> 
  </item> 
   
  <item> 
   <title>Because you usually don&#039;t send messages in utf-8. If you cho</title> 
   <description>Because you usually don&#039;t send messages in utf-8. If you choose utf-8 in the compose view, those characters are probably rendered fine at the recipient.</description> 
   <pubDate>Mon, 17 Dec 2007 23:23:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t40005</link> 
  </item> 
   
  <item> 
   <title>Thanks.  Changing the sending charset fixed the problem.  Wo</title> 
   <description>Thanks.  Changing the sending charset fixed the problem.  Would it be 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&#039;t needed?</description> 
   <pubDate>Mon, 17 Dec 2007 23:48:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t40006</link> 
  </item> 
   
  <item> 
   <title>&gt; Would it be 

&gt; crazy to check for character set conversio</title> 
   <description>&gt; Would it be 

&gt; crazy to check for character set conversion problems and warn the 

&gt; user before sending?

This is not possible unfortunately.

&gt; Or make UTF-8 the default and downgrade to 

&gt; ISO-8859-1 when UTF-8 isn&#039;t needed?

No, that&#039;s not possible either. You can&#039;t determine which charset you might need from an utf-8 stream.

</description> 
   <pubDate>Mon, 17 Dec 2007 23:59:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t40009</link> 
  </item> 
   
  <item> 
   <title>pine/alpine has a function pith/send.c:set_charset_possibly_</title> 
   <description>pine/alpine has a function pith/send.c:set_charset_possibly_to_ascii(), which does exactly this.  If no-non-ASCII characters are found, then convert text to ASCII.</description> 
   <pubDate>Tue, 18 Dec 2007 00:29:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t40010</link> 
  </item> 
   
  <item> 
   <title>We do this already iirc. But only having the choice between </title> 
   <description>We do this already iirc. But only having the choice between utf-8 and ascii is not what we want to do.</description> 
   <pubDate>Tue, 18 Dec 2007 00:58:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t40013</link> 
  </item> 
   
  <item> 
   <title>Agreed.  But this seems useful though overly simplified...</title> 
   <description>Agreed.  But this seems useful though overly simplified...</description> 
   <pubDate>Wed, 19 Dec 2007 22:01:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t40088</link> 
  </item> 
   
  <item> 
   <title>This seems just annoying to me, especially since if there&#039;s </title> 
   <description>This seems just annoying to me, especially since if there&#039;s a non-printing char that isn&#039;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&#039;re in ascii or iso-8859-1, but otherwise I think this goes back to being Not A Bug.</description> 
   <pubDate>Mon, 07 Jan 2008 01:03:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t40816</link> 
  </item> 
   
  <item> 
   <title>I agree with Chuck.</title> 
   <description>I agree with Chuck.</description> 
   <pubDate>Wed, 16 Jan 2008 22:35:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t41204</link> 
  </item> 
   
  <item> 
   <title>Maybe this should be opened as a new bug, but why does the u</title> 
   <description>Maybe this should be opened as a new bug, but why does the user have 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&#039;t we want that feature?</description> 
   <pubDate>Thu, 14 Feb 2008 06:43:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t42327</link> 
  </item> 
   
  <item> 
   <title>Something like:



$str = &quot;&amp;#1513;&amp;#1500;&amp;#1493;&amp;#1501;&quot;;


</title> 
   <description>Something like:



$str = &quot;&amp;#1513;&amp;#1500;&amp;#1493;&amp;#1501;&quot;;



echo mb_detect_encoding($str, &quot;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&quot;) . &quot;\n&quot;;

</description> 
   <pubDate>Thu, 14 Feb 2008 07:26:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t42328</link> 
  </item> 
   
  <item> 
   <title>mbstring doesn&#039;t support all charsets that we do.</title> 
   <description>mbstring doesn&#039;t support all charsets that we do.</description> 
   <pubDate>Thu, 14 Feb 2008 10:13:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t42331</link> 
  </item> 
   
  <item> 
   <title>What if we default to UTF-8 and downgrade to ASCII if we pas</title> 
   <description>What if we default to UTF-8 and downgrade to ASCII if we pass something similar to Data_ldif&#039;s _is_safe_string() check?  The user always has the option to override this...</description> 
   <pubDate>Mon, 24 Mar 2008 05:54:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t44165</link> 
  </item> 
   
  <item> 
   <title>UTF-8 is not a good default for email messages. Contrary to </title> 
   <description>UTF-8 is not a good default for email messages. Contrary to browsers, the UTF-8 support in email clients is still not that widespread yet, and the market is much more diverse too.</description> 
   <pubDate>Mon, 24 Mar 2008 12:49:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t44168</link> 
  </item> 
   
  <item> 
   <title>Then what character set are you supposed to use when ASCII d</title> 
   <description>Then what character set are you supposed to use when ASCII doesn&#039;t cut it?  Can we ask the user to manually choose another character set if their message won&#039;t fit in ASCII, but they&#039;re using the default of ASCII?  Dropping the extra characters silently is not user-friendly.</description> 
   <pubDate>Mon, 24 Mar 2008 18:26:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t44170</link> 
  </item> 
   
  <item> 
   <title>Pasting word documents into email messages isn&#039;t friendly ei</title> 
   <description>Pasting word documents into email messages isn&#039;t friendly either. I 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.</description> 
   <pubDate>Mon, 24 Mar 2008 22:53:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2072#t44173</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
