Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#455 closed Bug (fixed)

Problem when select a chinese files in FCKeditor

Reported by: Reiner Jung Owned by: Alfonso Martínez de Lizarrondo
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 Jung 10 years ago.
Screenshot of wrong characters
繁體中文字.jpg (15.9 KB) - added by Reiner Jung 10 years ago.
Example XLS files
測試1.GIF (2.9 KB) - added by Reiner Jung 10 years ago.
Example Gif file
繁體中文字.txt (63 bytes) - added by Reiner Jung 10 years ago.
Example txt file

Download all attachments as: .zip

Change History (11)

Changed 10 years ago by Reiner Jung

Attachment: Chinese-Character-error.gif added

Screenshot of wrong characters

Changed 10 years ago by Reiner Jung

Attachment: 繁體中文字.jpg added

Example XLS files

Changed 10 years ago by Reiner Jung

Attachment: 測試1.GIF added

Example Gif file

Changed 10 years ago by Reiner Jung

Attachment: 繁體中文字.txt added

Example txt file

comment:1 Changed 10 years ago by Alfonso Martínez de Lizarrondo

Keywords: Confirmed added; Chinese Characters removed
Milestone: FCKeditor 2.4.3
Owner: changed from Frederico Caldeira Knabben to Alfonso Martínez de Lizarrondo
Status: newassigned

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 10 years ago by Alfonso Martínez de Lizarrondo

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 10 years ago by Reiner Jung

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

comment:5 Changed 10 years ago by Frederico Caldeira Knabben

Milestone: 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 10 years ago by Alfonso Martínez de Lizarrondo

Resolution: fixed
Status: assignedclosed

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 10 years ago by Frederico Caldeira Knabben

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