Keyword

Utf-8 attachements problem

  • doricsoft_gr
  • doricsoft_gr's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago - 7 years 11 months ago #158535 by doricsoft_gr
Utf-8 attachements problem was created by doricsoft_gr
Hi,

I am trying to upload attachements to a k2 website. Their filenames are in utf-8 format.
The file is uploaded, but the filenames are changed to yyyyyyyyy-2.pdf format.

Have you got any clues? :-)

Thank you,

Panos
Last edit: 7 years 11 months ago by doricsoft_gr.

Please Log in or Create an account to join the conversation.

  • doricsoft_gr
  • doricsoft_gr's Avatar Topic Author
  • Offline
  • New Member
More
7 years 11 months ago #158572 by doricsoft_gr
Replied by doricsoft_gr on topic Utf-8 attachements problem
I found the line that produces the error.

filepath: administrator/components/com_k2/lib/class.upload.php
line: 3630

line contents:
$this->file_dst_name_body = utf8_encode(strtr(utf8_decode($this->file_dst_name_body), utf8_decode('ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝà áâãäåçèéêëìíîïñòóôõöøùúûüýÿ'), 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy'));

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum