Steve Teale wrote:
Ary Borenszweig Wrote:

Steve Teale wrote:
import std.stdio;

void main()
{
   string s = "Die Walküre";
   writefln(s);
}

Gives error - invalid utf-8 sequence. I pasted the text from a Wiki page that 
claims to be utf-8. What's happening?
Did you save the file as UTF-8?

Was not offered the opportunity. I pasted the text from the web page into 
Windows Notepad, and saved it - this seemed to me to be as generic as possible 
given the facilities I have available. What editor will do the trick? Also, if 
I'm using the Windows version of the compiler, shouldn't it be smart enough to 
convert the Windows character set to UTF-8?

Notepad will do the trick, but you must save it as UTF-8. In the Save As dialog select UTF-8 in Encoding.

Reply via email to