Re: What is meant by '\u0000'?

From: Gaspar Sinai (gsinai@yudit.org)
Date: Tue Nov 27 2001 - 03:22:25 EST


On Mon, 26 Nov 2001 juuichiketajin@ranmamail.com wrote:

>
>
> > As for cut & paste, it might work among Microsoft Apps
> > but if one wants to interface an app with a disclosed
> > clipboard format he will realize that he can not paste
> > unicode text that contains '\u0000' characters. Impossible.
>
> Does he mean specifically the character U+0000,
> or rather any character referenced by hex codepoint?

It is only \u0000. When I wrote that I was very irritated, because
I am porting a unix app - this would be my first win32 app.

I always find some very nasty thing with Win32 that looks
like a screw-up only MS can get away with.. This one is a
limitation of the Windows clipboard. There is no way to tell
the _actual_ size of the data on the clipboard.

It took me several hours till I figured. As a workaround I
made my own text format and named it UTF8_STRING and encoded
it like java - I converted 0x0000 to 0xc0 0x80, because that never
appears in an utf-8 sting. Then I put a 0 at the end.
Drawback is: I can only communicate with myself this way.

becasue it is non-standard. Standard only has ucs-2. and it has
to be \u0000 terminated.

Sorry I my tone is too sharp - this is a Win-sickness, I will get
over with it when I finished my work on that platform.

Thanks
gaspar



This archive was generated by hypermail 2.1.2 : Tue Nov 27 2001 - 04:29:22 EST