php-i18n Digest 28 Apr 2008 12:19:11 -0000 Issue 387
Topics (messages 1164 through 1164):
Re: Unicode escape sequences in PHP?
1164 by: Tomas Kuliavas
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
> Hi all, I have a question regarding unicode character escape sequences:
>
> I need to match char 0x2022 (bullet).
>
> PHP's \x does not support multibyte chars.
> PCRE (e.g. preg_match) supports \u2022, but only on platforms where the
> PCRE lib has been compiled with a certain flag.
>
> Is there an escape sequence I can use with mb_ereg that will match this
> character?
>
> Thanks,
> Frank
\xE2\x80\xA2 for text in UTF-8.
--- End Message ---