Invalid trainling code unit
Ali Çehreli
acehreli at yahoo.com
Fri Dec 14 22:37:50 PST 2012
On 12/14/2012 10:07 PM, rumbu wrote:
> I'm trying to understand how strings are working in D. I got the
> following error when declaring a simple string variable: "Invalid
> trailing code unit":
>
> wstring needle = `Être sans la verité`;
>
> Considering that the line obove is copied exactl from the site examples,
> what I'm doing wrong?
Works here as well.
My guess is that the encoding of the source code is not one of the
Unicode encodings, rather a "code table" encoding. If so, please save
the source code in a UTF encoding, e.g. UTF-8.
Ali
More information about the Digitalmars-d
mailing list