invalid UTF-8 sequence compiler error

Carlos Santander csantander619 at gmail.com
Sun Apr 1 18:35:35 PDT 2007


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.

-- 
Carlos Santander Bernal


More information about the D.gnu mailing list