Kunena 6.2.5 & module Kunena Latest 6.0.7 released

The Kunena team has announce the arrival of Kunena 6.2.5 [K 6.2.5] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.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
  • wzyefd's Avatar Topic Author
  • Visitor
11 years 4 months 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.

Time to create page: 0.391 seconds