Advertisement:

Author Topic: Name of attachments  (Read 1243 times)

Offline Raffaele1977

  • Full Member
  • ***
  • Posts: 446
Name of attachments
« 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
MacOsX - 10.14.5
SMF 2.0.15
Safari (last) or Chrome (last)

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,556
  • Gender: Male
    • Kindred-999 on GitHub
Re: Name of attachments
« Reply #1 on: June 06, 2017, 06:19:48 AM »
are you using utf-8?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Raffaele1977

  • Full Member
  • ***
  • Posts: 446
Re: Name of attachments
« Reply #2 on: June 06, 2017, 06:24:23 AM »
Italian: ISO-8859-1

I think this is the answer.
MacOsX - 10.14.5
SMF 2.0.15
Safari (last) or Chrome (last)

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 314
  • currently reading; '$smcFunc'
Re: Name of attachments
« Reply #3 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.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Portugal

  • Jr. Member
  • **
  • Posts: 215
Re: Name of attachments
« Reply #4 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.

Offline Raffaele1977

  • Full Member
  • ***
  • Posts: 446
Re: Name of attachments
« Reply #5 on: August 14, 2019, 09:58:25 AM »
I didn't solve it, sorry :(
MacOsX - 10.14.5
SMF 2.0.15
Safari (last) or Chrome (last)

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,693
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Name of attachments
« Reply #6 on: August 19, 2019, 01:13:53 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.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Raffaele1977

  • Full Member
  • ***
  • Posts: 446
Re: Name of attachments
« Reply #7 on: August 19, 2019, 03:19:50 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.
MacOsX - 10.14.5
SMF 2.0.15
Safari (last) or Chrome (last)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,804
    • StoryBB/StoryBB on GitHub
Re: Name of attachments
« Reply #8 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.)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,523
    • sbulen on GitHub
Re: Name of attachments
« Reply #9 on: August 19, 2019, 11:03:31 AM »
Yep.  This is a bug.

Note that 2.1 is far better at non-English support.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp