×
Blue Eagle 1.5.2 Released (Yesterday)

The Kunena team has announce the arrival of Kunena Blue Eagle 1.5.2 which is now available for download as a native Joomla extension for Kunena 5.1. This version addresses most of the issues that were discovered in K 1.5.1 and issues discovered during the development stages of K 1.5.2.

× This is for users to help other users, to discuss topics that are related to forum administration in general or problems in running Joomla. This is not the place to ask for Joomla support. If you want assistance with Joomla please ask at forum.joomla.org

Question How can I upload attachment with chinese character filename

  • wzyefd
  • Topic Author
  • Visitor
6 years 3 weeks ago #1 by wzyefd
Hi,
Kunena is an amazing Component,I love it very much.
But it has a comflict with chinese user.
When we upload attachments with chinese character filename,
the Chinese character will be replaced.
I have hacked in kunena files 'kunena.upload.class.php' by delete line
$uploadedFileBasename = CKunenaFile::makeSafe ( $uploadedFileBasename );
So that the coulmn filename in table kunena_attachment will store with Chinese utf-8 character
But the file uploaded to website will be ANSI character.
So the link of attachment could not be visited.

If I change the code format by function
$uploadedFileBasename = iconv("utf-8", "gbk//IGNORE", $uploadedFileBasename);
The files uploaded will be ok with utf-8 character,
But the coulmn filename in table kunena_attachment will be null.

How can I fix it?

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.083 seconds