[rt-users] RT 3.8 mangles html attachment

Jesse Vincent jesse at bestpractical.com
Thu Feb 19 14:08:56 EST 2009


> <meta http-equiv=Content-Type content="text/html; charset=unicode">
> 
> I don't know how FF figures out that it is UTF-16LE.

I'd recommend starting in lib/RT/I18N.pm sub SetMIMEEntityToUTF8.
instrument there.


> 
> 
> On Thu, Feb 19, 2009 at 1:48 PM, Todd Chapman <todd at chaka.net> wrote:
> >
> >
> > On Thu, Feb 19, 2009 at 1:22 PM, Jesse Vincent <jesse at bestpractical.com> wrote:
> >>
> >>
> >>
> >> On Thu 19.Feb'09 at 12:56:11 -0500, Todd Chapman wrote:
> >> >    On Thu, Feb 19, 2009 at 12:29 PM, Jesse Vincent
> >> >    <[1]jesse at bestpractical.com> wrote:
> >> >
> >> >      On Thu 19.Feb'09 at 11:55:19 -0500, Todd Chapman wrote:
> >> >      >    It was attached in the web interface on the Create.html page. (Not
> >> >      a
> >> >      >    custom field)
> >> >
> >> >      And what headers is RT serving it out with? Is RT announcing it as utf8?
> >> >      Is that stored in the database as content-type?
> >> >
> >>
> >> Well, what does the database say for content-type? Is the content in the
> >> database 'right'?
> >>
> >
> > Sorry. And thanks again for all the help!
> >
> > mysql> select Subject, Filename, ContentType, ContentEncoding, Headers from Attachments where id=10792\G
> > *************************** 1. row ***************************
> >         Subject: Re Eprize RPC interface failing on DC registration.htm
> >        Filename: Re Eprize RPC interface failing on DC registration.htm
> >     ContentType: text/html
> > ContentEncoding: none
> >         Headers: MIME-Version: 1.0
> > Subject: Re Eprize RPC interface failing on DC registration.htm
> > X-Mailer: MIME-tools 5.426 (Entity 5.426)
> > Content-Type: text/html;
> >  charset="utf-8";
> >  name="Re Eprize RPC interface failing on DC registration.htm"
> > Content-Disposition: inline;
> >  filename="Re Eprize RPC interface failing on DC registration.htm"
> > Content-Transfer-Encoding: binary
> > X-RT-Original-Encoding: utf-8
> > Content-Length: 73017
> >
> > 1 row in set (0.00 sec)
> >
> 

-- 



More information about the rt-users mailing list