Login   Register  
PHP Classes
elePHPant
Icontem

Bug with accent char

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      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
Messages:2
Author:Cyberdisyan
Date:2009-12-02 13:20:40
Update:2009-12-19 12:52:50
 

  1. Bug with accent char   Reply  
Picture of Cyberdisyan
Cyberdisyan
2009-12-02 13:20:41
Hi,

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  
Picture of Ricardo Vergutz
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);
putenv('LC_ALL='.$locale);

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

Just adapt it to your language locale.