Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Raffoz on June 06, 2017, 03:36:36 AM

Title: Name of attachments
Post by: Raffoz on June 06, 2017, 03:36:36 AM
Before 2.0.14 when i used names of attachments with accents inside, it worked correctly.
Today with 2.0.14 SMF post the attachment, but the name of the file appear truncated, as if it was without name.

Any solution?
Tks
Title: Re: Name of attachments
Post by: Kindred on June 06, 2017, 06:19:48 AM
are you using utf-8?
Title: Re: Name of attachments
Post by: Raffoz on June 06, 2017, 06:24:23 AM
Italian: ISO-8859-1

I think this is the answer.
Title: Re: Name of attachments
Post by: richardwbb on June 07, 2017, 03:59:03 PM
Raffaele1977, did you know that accenting filenames in general isn't a great idea. Really. For smf, I don't know man, I wouldn't touch it inside smf, even if my users of my board can use that, I wouldn't touch that either.
Title: Re: Name of attachments
Post by: Portugal on August 14, 2019, 09:57:10 AM
I have the same problem since one year ago, anyone has solved this problem? My forum is in Portuguese language (we have some special characters) and isnt in UTF8.
Title: Re: Name of attachments
Post by: Raffoz on August 14, 2019, 09:58:25 AM
I didn't solve it, sorry :(
Title: Re: Name of attachments
Post by: Aleksi "Lex" Kilpinen on August 19, 2019, 01:13:53 AM
Quote from: Portugal on August 14, 2019, 09:57:10 AM
(we have some special characters) and isnt in UTF8.
This in general isn't a good combo, and like mentioned - filenames typically shouldn't have special characters to begin with.
Title: Re: Name of attachments
Post by: Raffoz on August 19, 2019, 03:19:50 AM
Quote from: Aleksi "Lex" Kilpinen on August 19, 2019, 01:13:53 AM
Quote from: Portugal on August 14, 2019, 09:57:10 AM
(we have some special characters) and isnt in UTF8.
This in general isn't a good combo, and like mentioned - filenames typically shouldn't have special characters to begin with.

I understand and agree, in general.
But there are languages, like Italian, where accenting words are normal and create filenames without accents would result in a "grammatical error".
This is the reason.
Title: Re: Name of attachments
Post by: Arantor on August 19, 2019, 03:53:27 AM
There is actually nothing preventing accented characters in file names, the fact that the file name on disk on Windows is neither ISO-8859-anything or UTF-8 is no barrier as long as the forum is set up to use UTF-8 correctly.

(Windows uses UTF-16 under the hood. Linux uses UTF-8 I believe. As long as what gets into the database goes through the UTF-8 channels it should be fine.)
Title: Re: Name of attachments
Post by: shawnb61 on August 19, 2019, 11:03:31 AM
Yep.  This is a bug.

Note that 2.1 is far better at non-English support.