Rasmus Lerdorf wrote:
On Wed, 8 Sep 2004, Marek Kilimajer wrote:
John Smith wrote:
What's the most accurate way to get the byte count of
some text? Is strlen() accurate with Unicode, ASCII,
etc.?
John
strlen() is fine even for multibyte encodings, it does not know about
encoding and returns the "ra
On Wed, 8 Sep 2004, Marek Kilimajer wrote:
> John Smith wrote:
> > What's the most accurate way to get the byte count of
> > some text? Is strlen() accurate with Unicode, ASCII,
> > etc.?
> >
> > John
> >
>
> strlen() is fine even for multibyte encodings, it does not know about
> encoding and retur
John Smith wrote:
What's the most accurate way to get the byte count of
some text? Is strlen() accurate with Unicode, ASCII,
etc.?
John
strlen() is fine even for multibyte encodings, it does not know about
encoding and returns the "raw" size. If you wanted the number of
characters, you would need
John Smith wrote:
What's the most accurate way to get the byte count of
some text? Is strlen() accurate with Unicode, ASCII,
etc.?
if you are working with non ASCII characters you might want to install
the mulitbyte string extension.
--
Raditha Dissanayake.
What's the most accurate way to get the byte count of
some text? Is strlen() accurate with Unicode, ASCII,
etc.?
John
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
PHP General Mailing
5 matches
Mail list logo