1 Jul
2008
1 Jul
'08
11:39 a.m.
Hans Hagen
Jonathan Sauer wrote:
Hello,
slightly more efficient ... (char and byte accept multiple arguments) and you can use write which is faster too)
Thanks!
in context i use something quick and dirty (no > 0x10000 checking but from your function i can deduce the magic umbers -)
Well, they are simply the ones mentioned in http://en.wikipedia.org/wiki/Utf-16.
sure, but i didn't realize that a simple / worked ok; trunc/round stuff and so
Oh, it doesn't work. It is the %04x which does the truncation. %04.0f in contrast rounds. No idea whether this is documented/intended behavior. -- David Kastrup