Ticket #1485063 (new Bugs)

Opened 5 months ago

Last modified 5 weeks ago

abbreviate_string in get.inc

Reported by: simplexe Owned by:
Priority: 5 Milestone: 0.2-stable
Component: Client Scripts Version: 0.1.1
Severity: normal Keywords:
Cc:

Description

hi, in file get.inc function abbreviate_string have secondary param 55 for IE, i added if<>else for other browsers. see diff. Also, when i save attached file on disk and filename in cyrillic encoding - in IE, filename (not extension!) broken. i use iconv() function for encoding, so:

      $browser   = new rcube_browser();
      if ($browser->win && $_SERVER['HTTP_ACCEPT_LANGUAGE'] == 'ru' && $browser->ie)
        {
        $part->filename = iconv("UTF-8", "Windows-1251", $part->filename);
        }

i not found other decision =(

Attachments

only_ie_hack.diff (1.2 kB) - added by simplexe 5 months ago.
filename_on_browser.bmp (46.0 kB) - added by simplexe 5 months ago.
in preview panel (IE)
save_on_disk_no_iconv.bmp (128.8 kB) - added by simplexe 5 months ago.
no iconv()
save_on_disk_wich_iconv.6.bmp (96.3 kB) - added by simplexe 5 months ago.
with iconv()

Change History

Changed 5 months ago by simplexe

Changed 5 months ago by simplexe

in preview panel (IE)

Changed 5 months ago by simplexe

no iconv()

Changed 5 months ago by simplexe

with iconv()

Changed 5 months ago by alec

  • milestone changed from later to 0.1.2

Changed 5 months ago by till

  • milestone changed from 0.1.2 to 0.1.5

So it's only broken in Internet Explorer and works in all other browsers?

I'd suggest you use MultiByte? instead of iconv.

Changed 5 months ago by simplexe

Yes, only IE, other works good. IMO IE use system encoding for save file. Maybe it is worth to write a feature to specify the encoding IE?

Changed 5 months ago by simplexe

after my experiments, i found trouble - IE don't send Accept charset to server, only language.

Changed 5 months ago by anonymous

  • milestone deleted

Milestone 0.1.5 deleted

Changed 5 weeks ago by alec

  • milestone set to 0.2-beta
Note: See TracTickets for help on using tickets.