introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

set PREG on utf-8 mode



Posted by: rodolphe
January 12, 2008 02:52PM
Hi,

I would like to use Dotclear2 on EasyPHP but I can't find out to set PREG (php5) on UTF-8 mode.

Somebody can help me ?

Thanks

Rodolphe
Options: ReplyQuote
Posted by: mega-squall
January 12, 2008 04:13PM
-- PHP5 is not supported by EasyPHP 1.8
-- Did you intended to post in EasyPHP 2.0 forum ?

Found by double reading PCRE documentation ( [php.net] ) :
PCRE is not compatible with multi byte encodings such as UTF-8.
You have to use mbstring ( [php.net] ) instead.
Please note that mbstring only allows ereg usage.

Alternative solution : wait for PHP6
It will have native unicode support as well as Unicode PCRE compatibility.
Please also note that EREG support will be disabled in PHP6.

---
mega-squall



Edited 1 time(s). Last edit at 01/12/2008 04:13PM by mega-squall.
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.