Re: [PHP-I18N] Unicode support with UString abstraction layer

2012-09-01 Thread TRiG
I would suggest changing the terminology here. A "string" is quite simply an array of bytes, with no intrinsic meaning or encoding. This "UString" is something quite different, and giving it a similar name might cause confusion. I'd suggest calling it a "text" type. Having distinct "string" an

Re: [PHP-I18N] Unicode support with UString abstraction layer

2012-08-31 Thread Ferenc Kovacs
On Sun, Jul 22, 2012 at 11:50 PM, Ferenc Kovacs wrote: > > On Wed, Mar 21, 2012 at 7:23 PM, Umberto Salsi wrote: > >> Although I never contributed to the code of the PHP project, I hope the >> ideas >> that follow may provide some suggestion for the future developments of >> the PHP >> language.

Re: [PHP-I18N] Unicode support with UString abstraction layer

2012-07-22 Thread Ferenc Kovacs
Hi, I think that there aren't that many people subscribed to this list, so I'm ccing the internals list, as your suggestion is to implement/bundle this to the core. On Wed, Mar 21, 2012 at 7:23 PM, Umberto Salsi wrote: > Although I never contributed to the code of the PHP project, I hope the >

[PHP-I18N] Unicode support with UString abstraction layer

2012-03-21 Thread Umberto Salsi
Although I never contributed to the code of the PHP project, I hope the ideas that follow may provide some suggestion for the future developments of the PHP language. The basic idea is described in the abstract, and those that are not interested may stop there :-) Abstract My modest pro

Re: [PHP-I18N] Unicode Transliteration & ICU

2008-06-10 Thread Andrei Zmievski
The full text transformation support is not there yet, but there is a simple transliteration function - str_transliterate(). -Andrei Darren Cook wrote: Does anyone know anything about transliteration in PHP6. I have noticed that PHP has an ICU extension. ICU has a very comprehensive transliter

Re: [PHP-I18N] Unicode Transliteration & ICU

2008-06-09 Thread Darren Cook
> Thanks for your very informative reply, Darren. I guess that maybe > PHP6 has implemented this from ICU. I was told by a PECL developer > that there is something in PHP6 but he didn't elaborate. The intl extension: http://pecl.php.net/package/intl/ You can use it from php 5.2.4 onwards (or 5.2

Re: [PHP-I18N] Unicode Transliteration & ICU

2008-06-09 Thread Stanislav Malyshev
Hi! It is documented here: http://www.icu-project.org/userguide/Transform.html (But I don't think Transform in the PHP intl extension?) No, not yet. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Unicode

Re: [PHP-I18N] Unicode Transliteration & ICU

2008-06-08 Thread Darren Cook
> Does anyone know anything about transliteration in PHP6. I have noticed > that PHP has an ICU extension. ICU has a very comprehensive > transliteration/transform module that is not documented. It is documented here: http://www.icu-project.org/userguide/Transform.html (But I don't think Transf

[PHP-I18N] Unicode Transliteration & ICU

2008-06-08 Thread David Arakelian
Hi, I have been told that PHP6 has implemented transliteration in some form, but no specifics were given. Does anyone know anything about transliteration in PHP6. I have noticed that PHP has an ICU extension. ICU has a very comprehensive transliteration/transform module that is not documented. C

[PHP-I18N] Unicode escape sequences in PHP?

2008-04-24 Thread frank farmer
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 s

[PHP-I18N] Unicode string iterator performance

2006-02-02 Thread Andrei Zmievski
You probably saw that I have committed initial implementation of TextIterator. The impetus for this is that direct indexing of Unicode strings via [] operator is slow, very slow, at least currently. The reason is that [] cannot simply perform random-offset indexing into UCHar* strings. It needs

Re: [PHP-I18N] Unicode internationalization problem with e-commerce site

2004-10-21 Thread Moriyoshi Koizumi
First off, the 4.0.x versions of MySQL are not capable of handling UTF-8 (Actually it can store such strings though). It'd be better to use some legacy encoding instead. And, it's worth a try to see if the automatic encoding conversion function of the mbstring extension is enabled (if output_han

Re: [PHP-I18N] Unicode internationalization problem with e-commerce site

2004-10-21 Thread Christophe Chisogne
Mattias HÃ¥kansson wrote: I am experiencing some problems with internationalization and I can't figure out if there's a global solution to this issue or if independent application tweaking is needed. These are my examples You'll probably have to update your application somewhat. First choose one enc

[PHP-I18N] Unicode internationalization problem with e-commerce site

2004-10-21 Thread Mattias HÃ¥kansson
Hello, I am experiencing some problems with internationalization and I can't figure out if there's a global solution to this issue or if independent application tweaking is needed. These are my examples Server config: Linux dev 2.4.21-20.ELsmp, Red Hat Enterprise Linux ES release 3 (Taroon Upda

[PHP-I18N] Unicode localizations?

2002-12-05 Thread a . h . s . boy
While modifying my internationalized application so that it not only supports multiple languages, but tries its best to display Turkish, Greek and English nicely on the same page, I ended up using UTF-8 as my default encoding. It makes the languages work nicely together, but it ruins other aspe

[PHP-I18N] unicode

2002-10-14 Thread Koh Swee Meng
i've compiled php with mb_string. all my data are in ascii and i have a data in unicode (fixed 2 bytes per character). now i am trying to show my page in UTF-8. how do i convert data in unicode (fixed 2 bytes per character) to UTF-8? TQ Regards, Koh Swee Meng -- PHP Internationalization Mai

Re: [PHP-I18N] UNICODE

2001-10-25 Thread Naoki Shima
resql.org/users-lounge/docs/7.1/admin/multibyte.html Naoki Shima -Original Message- From: Per [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 12:27 AM To: [EMAIL PROTECTED] Subject: [PHP-I18N] UNICODE Hi, To enable localization of our new platform, we thought that saving all ch

Re: [PHP-I18N] UNICODE in PHP

2001-10-25 Thread Naoki Shima
ECTED] Subject: RE: [PHP-I18N] UNICODE in PHP Rui, I found problems with ISO-2022 when implementing the C library string functions. Many of these functions return pointers into the string but without preceding escape characters, you have no idea how to interpret the characters. Functions like strto

RE: [PHP-I18N] UNICODE in PHP

2001-10-25 Thread Carl W. Brown
thing UTF-8 and UTF-16 are also MBCS encodings. They share some of the same aspects and also have some unique differences. Carl > -Original Message- > From: Per [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 25, 2001 7:01 AM > To: [EMAIL PROTECTED] > Subject

[PHP-I18N] UNICODE

2001-10-25 Thread Per
Hi, To enable localization of our new platform, we thought that saving all character strings as UNICODE would be a good idea. Even if the front-end (PHP) doesn't fully support UNICODE yet, we figured it's still good to have the database in that format, for the future. We have not installed mb_str

Re: [PHP-I18N] UNICODE in PHP

2001-10-25 Thread Per
Dear all, Sorry to trouble you with a rather basic question. If you are too busy, please ignore it. To enable localization of our new platform, we thought that saving all character strings as UNICODE would be a good idea. Even if the front-end (PHP) doesn't fully support UNICODE yet, we figured

RE: [PHP-I18N] UNICODE in PHP

2001-10-23 Thread Carl W. Brown
2001 5:21 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-I18N] UNICODE in PHP > > > > Hi, > > On Fri, 19 Oct 2001 20:01:38 +0200 > "Per" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I would be most interested in knowing the current

Re: [PHP-I18N] UNICODE in PHP

2001-10-21 Thread Andi Gutmans
No one seems to be working seriously on full Unicode support except for the mainly Japanese work Rui has done. I thought that the Email from Carl Brown was quite promising but adding good i18n support to PHP will require much more interest and volunteers. It seemed that not many people were ver

Re: [PHP-I18N] UNICODE in PHP

2001-10-21 Thread Per
I would like to thank both Carl W Brown and Rui Hirokawa for their instructive and clarifying replies. I just now got this link sent to me from Avi Lewin: http://www.zend.com/zend/week/week58.php where it says: PHP Weekly Summary: A change of plans for PHP 4.0.7/4.1.0 releases, new Unicode suppor

Re: [PHP-I18N] UNICODE in PHP

2001-10-20 Thread Rui Hirokawa
Hi, On Fri, 19 Oct 2001 20:01:38 +0200 "Per" <[EMAIL PROTECTED]> wrote: > Hi, > > I would be most interested in knowing the current status of multi-byte > character handling in PHP, and also some kind of forecast of when it is > expected to work in a stable manner. Currently, there is an exper

RE: [PHP-I18N] UNICODE in PHP

2001-10-20 Thread Carl W. Brown
arl > -Original Message- > From: Per [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 11:02 AM > To: [EMAIL PROTECTED] > Subject: [PHP-I18N] UNICODE in PHP > > > Hi, > > I would be most interested in knowing the current status of multi-byte > char

[PHP-I18N] UNICODE in PHP

2001-10-19 Thread Per
Hi, I would be most interested in knowing the current status of multi-byte character handling in PHP, and also some kind of forecast of when it is expected to work in a stable manner. Currently, there is an experimental module for this at http://www.php.net/manual/en/ref.mbstring.php. How stable