Bug #411

Charset encoding problem in main/inc/lib/tablesort.lib.php (bug?)

Added by Carlos Vargas over 10 years ago. Updated over 10 years ago.

Feature implemented
Target version:
Start date:
Due date:
% Done:


Estimated time:
SCRUM pts - complexity:


In the current zip archive of 1.8.5, when downloaded and dezipped on pc/Windows, I can't read the file without problems with special characters (there are in fact functions to replace special characters in text, I suppose, for sorting).

I don't know if it has some effect on php processing.

No problem with 1.8.4 version.

Comparing the two files, I also noticed that, at the end of the function, the last line in 1.8.4 version :

return $is_numeric;

has been removed in 1.8.5 version. I don't know if it is on purpose...




Updated by Carlos Vargas over 10 years ago

Actualizado por Ivan Tcholakov hace 11 meses


About missing return $is_numeric; : Please, look at FS#3282.
If this is the same case, I can say that the missing return $is_numeric; has no purpose, it is a mistake. It has been fixed for the next release, 1.8.6.
Actualizado por Thierry De Henau hace 11 meses


Ok, but you still have a charset problem, it seems. in this file, version 1.8.4, you have a lot of functions like:
function strtolower_keepaccents($txt) {
return strtolower(strtr($txt, "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ", "àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ"));
(I wonder if this site will render it properly?) And I can see the file with different softwares under windows (Dreamweaver, Textpad).
With tablesort.lib.php version 1.8.5 I have a message (with Texpad) "the file contains characters that do not exist in code page 1252 (ANSI - latin-1)".

But maybe the fact that I can't see this file properly doesn't not make a problem for apache/php...

Actualizado por Yannick Warnier hace 10 meses


These functions were supposedly added to avoid problems when moving from upper to lowercase characters (and the opposite). Could you take a few screenshots to explain where you see this or detail a bit more WHEN this happens (because so far your description is not precise enough).
Actualizado por Yannick Warnier hace 3 meses

  • Estado changed from Unconfirmed to More info needed * Asignado a deleted * Versión prevista changed from 1.8.5 to * Complexity set to Average

Updated by Yannick Warnier over 10 years ago

  • Target version changed from alpha to beta

Updated by Christian Alberto Fasanando Flores over 10 years ago

it already was fixed for version


Updated by Christian Alberto Fasanando Flores over 10 years ago

  • Status changed from New to Feature implemented
  • % Done changed from 0 to 100

Also available in: Atom PDF