On 5/28/09 2:06 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote:
preg_replace(/([\xE0-\xFA])/e,chr(215).chr(ord(\${1})-80),$s);
...
The preg_replace() above convert the Hebrew chars into UTF8.
that preg_replace takes a byte string $s and:
- leaves bytes with value 0-127 intact
- converts bytes
Your point is right but these code point does not exist in the subject
string so this isn't the issue here.
I'm really stuck at this one :S
Thank you again for trying to help!
On Fri, May 29, 2009 at 2:40 PM, Tom Worster f...@thefsb.org wrote:
On 5/28/09 2:06 PM, Nitsan Bin-Nun
On 5/28/09 10:15 AM, Nitsan Bin-Nun nit...@binnun.co.il wrote:
I have wrote a files-based php system which not requires any kind of
database to work, it is based upon files and directories.
I'm using scandir() to fetch the file names of a directory, when the files
and the directories are in
On 5/28/09 1:19 PM, Tom Worster f...@thefsb.org wrote:
i suspect there will be serious dependency on os and file system.
i was unable to do anything with hebrew file or dir names on freebsd 7.1
with ufs. i even tried scping and tarring over the directory that worked on
os x.
--
PHP General
i have tried this:
?php if (!defined('THROUGH_INDEX')) die('Sorry mate!');
$default_locale = setlocale(LC_ALL, 'en_US.UTF-8');
ini_set('default_charset', 'UTF-8' );
$_GET['folder'] =
preg_replace(/([\xE0-\xFA])/e,chr(215).chr(ord(\${1})-80),$_GET['folder']);
$dirname =
On 5/28/09 2:06 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote:
i have tried this:
?php if (!defined('THROUGH_INDEX')) die('Sorry mate!');
$default_locale = setlocale(LC_ALL, 'en_US.UTF-8');
ini_set('default_charset', 'UTF-8' );
$_GET['folder'] =
6 matches
Mail list logo