Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#455 closed Bug (fixed)

Problem when select a chinese files in FCKeditor

Reported by: reiner Owned by: alfonsoml
Priority: Normal Milestone: FCKeditor 2.4.3
Component: Server : PHP Version: FCKeditor 2.4.2
Keywords: Confirmed Cc:

Description

We can upload a chinese file with FCKeditor, but when we want select the file, it don't show us chinese Characters, it show us only some strange characters 測試1.GIF.

When you go to browse server, you can see that the file is show with this strange characters. On the server self the file is stored right.

Tested it with Linux and Windows OS, With Firefox and Internet Explorer

I attached some files that you can test it

Attachments (4)

Chinese-Character-error.gif (25.9 KB) - added by reiner 9 years ago.
Screenshot of wrong characters
繁體中文字.jpg (15.9 KB) - added by reiner 9 years ago.
Example XLS files
測試1.GIF (2.9 KB) - added by reiner 9 years ago.
Example Gif file
繁體中文字.txt (63 bytes) - added by reiner 9 years ago.
Example txt file

Download all attachments as: .zip

Change History (11)

Changed 9 years ago by reiner

Screenshot of wrong characters

Changed 9 years ago by reiner

Example XLS files

Changed 9 years ago by reiner

Example Gif file

Changed 9 years ago by reiner

Example txt file

comment:1 Changed 9 years ago by alfonsoml

  • Keywords Confirmed added; Chinese Characters removed
  • Milestone FCKeditor 2.4.3 deleted
  • Owner changed from fredck to alfonsoml
  • Status changed from new to assigned

I've been able to reproduce by removing the call to utf8_encode in function ConvertToXmlAttribute( $value ), but I'm not sure if it can break other things.

I'll check the patch along other changes for #454 in my branch.

comment:2 Changed 9 years ago by alfonsoml

Sorry, I meant:

I've been able to reproduce the problem, and I fixed it by removing the call to utf8_encode ...

comment:3 Changed 9 years ago by reiner

Thanks, fast solution. Tested it and it works on my install

comment:5 Changed 9 years ago by fredck

  • Milestone set to FCKeditor 2.5

I don't think the call to utf8_encode is really needed (actually it is wrong). You may commit that fix to the trunk Alfonso. Thanks.

comment:6 Changed 9 years ago by alfonsoml

  • Resolution set to fixed
  • Status changed from assigned to closed

I've commited it in [299]

Let's hope that it works fine as usually the utf-8 things are tricky to get right.

comment:7 Changed 9 years ago by fredck

  • Milestone changed from FCKeditor 2.5 to FCKeditor 2.4.3
Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy