6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/11/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#129] attachment filename decode problem
*
Your Email Address
*
Spam protection
Enter the letters below:
.__.. .. . __ . . | || || |/ `| | |__\|/\||/\|\__.|/\|
Comment
> Just restarted on a upgrade from H2 to latest H3/IMP. > > > > I have similiar problems with swedish characters on attachment download. > > > > I have, as far as I can tell solved it for use at our site (very > quick and dirty). > > > > Maybe it helps someone else? Maybe someone can implement it correctly... > > > > Anyway, as far as I can tell, on single file download Firefox works > with swedish characters but IE doesn't. For me converting the sent > filename from "UTF-8" to "ISO-8859-1" solves the problem. > > So, in file imp/view.php, line 122 has been changed to (4 lines): > > if (($browser->getBrowser() == 'msie') && ($browser->getMajor() >= 5)) > > $name = iconv("UTF-8", "ISO-8859-1", $mime->getName(true, true)); > > else > > $name = $mime->getName(true, true); > > > > I am aware that this will probably break for other languages, but for > our swedish school environment it does the trick. Just did it today, > so I will evaluate it more, but still... > > > > Also, when downloading attachments in a single zip file, the > filenames are wrong in zip file. > > Made an even uglier hack for that: > > File view.php, line 96 (1 line): > > $tosave[] = array('data' => $mime->getContents(), 'name' => > iconv("UTF-8", "850", $mime->getName(true, true))); > > Apparently WinZip in my case likes it this way. Will check more (and > with Linux browsers). > > > > /Peter > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers