Closed NazarovRoman closed 1 year ago
Hi,
Can you try following patch?
diff --git a/src/Toolbox.php b/src/Toolbox.php
index bf1c7b4d76..e1ee3d690d 100644
--- a/src/Toolbox.php
+++ b/src/Toolbox.php
@@ -712,7 +712,7 @@ class Toolbox
}
header(
"Content-disposition:$attachment filename=\"" .
- addslashes(iconv('UTF-8', 'ISO-8859-1', $filename)) .
+ addslashes(mb_convert_encoding($filename, 'ISO-8859-1', 'UTF-8')) .
"\"; filename*=utf-8''" .
rawurlencode($filename)
);
I confirm! It worked!
unfortunately there was a new error when opening the downloaded file
Microsoft Word
Unfortunately, the file *.doсx cannot be opened due to problems with its contents. OK l Information < << \ Intelligence The file is corrupted so you won't be able to open it.
Maybe related to #12802 + #12856.
I did it, it didn't help
First issue will be fixed by #13023 and corrupted file is a different issue. Could you please open a new thread ?
Oh sure
Code of Conduct
Is there an existing issue for this?
Version
10.0.3
Bug description
PHP Notice (8): iconv(): Detected an illegal character in input string in /opt/glpi/src/Toolbox.php at line 705 PHP Warning (2): Cannot modify header information - headers already sent by (output started at /opt/glpi/src/Application/ErrorHandler.php:535) in /opt/glpi/src/Toolbox.php at line 707 PHP Warning (2): Cannot modify header information - headers already sent by (output started at /opt/glpi/src/Application/ErrorHandler.php:535) in /opt/glpi/src/Toolbox.php at line 709
php-errors.log access-errors.log sql-errors.log
error screen: or the result is the same
Relevant log output
No response
Page URL
help.bpmg.kz
Steps To reproduce
No response
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response