string - How to get a character from an extended ascii number -


the ascii code charts "ü" @ 129 (decimal). when trace("ü".charcodeat(0)) ... answer 252 - wrong. seems string.charcodeat() works 0-127. how convert between char , charcode values ranges 128-255?

since there more 1 character set call "extended ascii," there isn't meaning term. ascii used.

as you've found, important know character set , encoding using. although libraries flexible in adapting "the platform default," programs aren't written way and, if read or write data across systems, flexibility moot.

there no text encoded text. when pass text, have data loss if don't give encoding metadata.

actionscript strings sequences of unicode/utf-16 code units. see charcodeat(). unlike character sets, unicode has several encodings; utf-16 being 2 of them. (integers stored big endian or little endian , utf-16 code unit. utf-16 means either utf-16be or utf-16le, depending platform, through use of bom in string, data can specify byte order , indicate unicode encoding used.)

ü stored 1 utf-16 code unit value of 252. see unicode character 'latin small letter u diaeresis' (u+00fc) or unicodedata.txt.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -