mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2006
Posts: 546
J
jaytea Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
there appears to be a problem with encoding high surrogates (characters in the range 0xD800 to 0xDBFF)

Code:
//echo -a $len($utfencode($chr($base(D800,16,10))))


= 1

Code:
//echo -a $len($utfencode(a $+ $chr($base(D800,16,10)) $+ b))


= 5


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
Joined: Dec 2002
Posts: 5,524
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,524
Thanks this has been fixed for the next version.


Link Copied to Clipboard