Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Re: Learn a Variety of Languages . . . . . . .
- Date: Wed, 17 Jan 2007 12:43:33 +0900
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] Re: Learn a Variety of Languages . . . . . . .
- References: <45AAFDA9.90504@example.com> <157AA731-9AC1-4FEF-ABAD-23A5BE8F0C05@example.com> <Pine.NEB.4.64.0701161628390.12325@example.com> <78d7dd350701160014h40155a75n345183640cbccfc5@example.com> <19dd68ba0701160122i1b813c10jf34c0210d53fbbdd@example.com> <op.tl8roo02rtshzt@example.com> <19dd68ba0701160412y2eb95062r6235fed92b752784@example.com> <Pine.NEB.4.64.0701162139360.10912@example.com> <3156339d0701161820lb684aeubcd51914b19a87bf@example.com> <45AD8A87.4050007@example.com> <3156339d0701161911w7a6b8baxcea7481131783841@example.com>
- User-agent: Thunderbird 1.5.0.8 (X11/20061107)
>> > really ? - so how do you *easily* get a character count for a string of >> > utf-8 bytes ? >> >> In PHP it's mb_strlen() (with internal_encoding set to "UTF-8" of >> course). You can still use strlen() to get number of bytes... > > Thats my point - you need to use a whole set of seperate functions for > string handling and regexs. If you always want characters, never bytes, then always use mb_strlen(). It works with whatever the internal-encoding is set to. You can also set mbstring.func_overload to have strlen() become an alias for mb_strlen(), so you can continue to write strlen() everywhere. (It will also then use multi-byte versions of the regex functions.) Darren
- References:
- [tlug] What is the most appropriate scripting language
- From: Dave M G
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Jean-Christophe Helary
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Curt Sampson
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Nguyen Vu Hung
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Guillaume Proux
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Zev Blut
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Guillaume Proux
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Curt Sampson
- Re: Learn a Variety of Languages . . . . . . . (was: Re: [tlug] Re: Bourne Shell is the most appropriate scripting language)
- From: Ian MacLean
- [tlug] Re: Learn a Variety of Languages . . . . . . .
- From: Darren Cook
- Re: [tlug] Re: Learn a Variety of Languages . . . . . . .
- From: Ian MacLean
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Re: Learn a Variety of Languages . . . . . . .
- Next by Date: strlen() for UTF-8 . . . . . . . . (was Re: Learn a Variety of Languages) [tlug]
- Previous by thread: Re: [tlug] Re: Learn a Variety of Languages . . . . . . .
- Next by thread: strlen() for UTF-8 . . . . . . . . (was Re: Learn a Variety of Languages) [tlug]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links