<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.1.92">
</HEAD>
<BODY>
I guess I should use wchar instead of char. :)<BR>
<BR>
Il giorno mar, 22/11/2011 alle 10.31 -0600, Andrei Alexandrescu ha scritto:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On 11/22/11 10:28 AM, Andrea Fontana wrote:
> I've some problems (again) with UTF-8. Try this code:
>
> char[] chars = ['à','è','ì'];

This will truncate the multi-byte characters. It should be a 
compile-time error.

Andrei
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>