invalid UTF-8 sequence compiler error

0xFFFFFFFF 0xFFFFFFFF at mail.com
Sat Jun 30 09:03:29 UTC 2018


On Monday, 2 April 2007 at 01:37:27 UTC, Carlos Santander wrote:
> Cesar Rabak escribió:
>> Doing some tests on the gdc-0.22-1 for Linux (result of uname 
>> -a: Linux fuba 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:43:23 CEST 
>> 2005 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux), I got 
>> the error "invalid UTF-8 sequence" even if the 'offending' 
>> character is in comments.
>> 
>> Since the gcc counterpart does not complain on similar code 
>> with locale specific characters (mainly accented chars), I 
>> ponder:
>> 
>> Is there a way to have a gdc that can work with accented 
>> characters in strings and comments?
>> 
>> Regards,
>> 
>> --
>> Cesar Rabak
>
> This is a D feature, not a GDC problem. Save your file as 
> UTF-8, -16, or -32, and it'll work.

Even tho I didn't ask the question, it does solve my problem too. 
Thanks


More information about the D.gnu mailing list