projectmanagersuhaan / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Encoding error on file description #251

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Upload a file
2. Write a description
3. See the description in the client view

What is the expected output? What do you see instead?

The characters are in a wrong encoding and the HTML entities function is used 
twice so we see HTML entities.

What version of the product are you using? On what operating system?

r375 on a linux server.

Please provide any additional information below.

The system execute htmlentities() before put data in the database and execute 
it another time in the template. 

To resolve the problem, I just add the third parameter of htmlentities() to 
UTF-8 in the function encode_html() (includes/function.php) and remove the 
htmlentities() for the title and the description in 
templates/default/template.php.

Original issue reported on code.google.com by gmess...@parkour3.com on 5 Apr 2013 at 7:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I think the best approach is to start by changing the collation of every table.
Hoewever, that can corrupt alread existing data. I'm looking into this to 
include it in the next update.

Original comment by i...@subwaydesign.com.ar on 29 Apr 2013 at 2:15

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have posted a solution which is a mix of this solution and other solutions
see bug 279

Original comment by access_c...@hotmail.com on 2 May 2013 at 4:21