FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mysql dynamic binding and pass-by-ref deprecated
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Unicode support [message #180984 is a reply to message #180983] Sat, 30 March 2013 20:19 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
Christoph Becker wrote:

> Thomas 'PointedEars' Lahn wrote:
>> Christoph Becker wrote:
>>> I suppose most *higher level languages* define the length of a string as
>>> the number of characters the string holds. Cf. ECMAScript's length
>>> property and TCL's [string length]. Even PHP's mb_strlen() returns the
>>> number of characters.
>>
>> AISB, unfortunately the “length” property of ECMAScript String instances
>> is not a good example in that regard as it does _not_ mean the number of
>> characters but the number of 16-bit units (UTF-16 code units, usually).
>> That is only less obvious than with UTF-8 because all Unicode characters
>> in the BMP can be encoded using only one such unit. (I am working on a

“BMP” means “Basic Multilingual Plane” (U+0000 to U+FFFF).

>> workaround; you could call it “an mb_strlen() for ECMAScript
>> implementations”.)
>
> ECMA-262, Edition 5.1, Section 15.5.5.1, states:
>
> | *length*
> |
> | The number of characters in the String value represented by this
> | String object.
>
> IMO the spec is quite clear here,

It is.

> and so the implementations might be in error.

For a change, it is not. You should look up the definition of “character”
in the Specification. See also <news:2202673(dot)rtQqbKup0V(at)PointedEars(dot)de> pp.
(yes, in comp.lang.python).

> Anyway, I appreciate your working on a workaround; may come in handy. :)

At the latest after first contact ;-)

You will find it in
< http://PointEdears.de/websvn/listing.php?repname=JSX&path=%2Ftrunk%2Fst ring%2F>
when it is ready for testing.


F'up2 comp.lang.javascript

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need Forex Feed in PHP
Next Topic: can't get includes to load
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 19:30:19 GMT 2024

Total time taken to generate the page: 0.04647 seconds