PHP Classes

Bug with accent char

Recommend this page to a friend!

      Samba Web Client  >  All threads  >  Bug with accent char  >  (Un) Subscribe thread alerts  
Subject:Bug with accent char
Summary:If using special char there is a little bug
Date:2009-12-02 13:20:40
Update:2009-12-19 12:52:50

  1. Bug with accent char   Reply   Report abuse  
Cyberdisyan - 2009-12-02 13:20:41

I have a folder with this 2 files :
104 Déclaration.pdf
Business Compact.pdf

When using the Samba Web Client i get this strange result:
104 D Business Compact.pdf

Do you have any idéa ?

  2. Re: Bug with accent char   Reply   Report abuse  
Ricardo Vergutz - 2009-12-19 12:52:50 - In reply to message 1 from Cyberdisyan
This problem is php execute by default the command shell_exec with LOCALE=C.

I just added the following lines before shell_exec and the problem was solved:

$locale = 'pt_br.UTF-8';
setlocale(LC_ALL, $locale);

and alter var $cfgDefaultCharset = 'UTF-8';

Just adapt it to your language locale.