PHP Classes

missing UTF8 support?

Recommend this page to a friend!

      smb4php  >  All threads  >  missing UTF8 support?  >  (Un) Subscribe thread alerts  
Subject:missing UTF8 support?
Date:2012-07-03 11:37:02
Update:2012-11-14 21:49:03

  1. missing UTF8 support?   Reply   Report abuse  
wlo - 2012-07-03 11:37:02
I am using smb4php with the External storage support in owncloud; the samba share has several files with umlaute, like ä or ü; for example the file is named Unternehmenspräsentation.ppt

Fatal error: NT_STATUS_OBJECT_NAME_NOT_FOUND opening remote file \template\office\PPTs\deutsch\Unternehmenspr params(-d 0 '//server/daten' -c 'get "template\office\PPTs\deutsch\Unternehmenspr Vorlagen" "/tmp/smb.down.1lMNIe"') in /srv/owncloud/3rdparty/smb4php/smb.php on line 170

do you plan to integrate utf8 support?

  2. Re: missing UTF8 support?   Reply   Report abuse  
Denis Bonnenfant - 2012-11-14 21:49:03 - In reply to message 1 from wlo
The problem is not UTF8, but the locale setting. It has to match smb share encoding. exec(smbclient) is producing garbage if locale is not set to utf8

It has to be set globally for the user executing php code, or directly in php file.

Ideally, it has to be configurable in external share parameters.