First steps

Kristian Kilpi kjkilpi at gmail.com
Wed Nov 22 11:01:56 PST 2006


On Wed, 22 Nov 2006 18:50:51 +0200, JohnC <johnch_atms at hotmail.com> wrote:

> "Kristian Kilpi" <kjkilpi at gmail.com> wrote in message
> news:op.tjfefqr4usumhd at mist...
>> On Wed, 22 Nov 2006 14:58:57 +0200, Gabor Deak Jahn  
>> <djg at tramontana.co.hu>
>> wrote:
>>
>>> Hello,
>>>
>>> excuse me for dropping in with a simple question like this
>>> but I searched the FAQ and any available resources and I
>>> was unable to find an answer.
>>>
>>> I read the D description and found the language rather
>>> interesting and sane, I just wish Stroustrup had the same
>>> expertise when he designed C++ in the first place. I'm
>>> currently using many languages, C, C++, C#, Pascal and I'm
>>> contemplating to write my next major project in D to see
>>> how it works out in real life.
>>>
>>> My first test programs compile and run all right (Windows
>>> XP), except for one silly error. As soon as I start using
>>> comments (either //, /* or /+), I start getting 'invalid
>>> UTF-8 sequence' errors. The source file is plain ASCII but
>>> it doesn't make any difference if I change it to UTF-
>>> anything. The compiler version is v0.172, I've freshly
>>> downloaded it a couple of weeks ago from here.
>>>
>>> PS: the forum doesn't work with Opera. With an out-of-
>>> mainstream (yet) language like D, shouldn't we strive to
>>> serve out-of-mainstream (yet) browsers as well? :-)))
>>>
>>> Thanks,
>>>   Gabor
>>
>> All the comments must also contain plain ASCII only. For example,
>> scandinavian letters (ä, ö, å) cannot be used inside comments.
>>
>> Btw, I am using Opera, and at the first glance the forums seems to  
>> work. I
>> did have a couple of problems to connect to the newsgroup server though.
>> It took a quite long time before the newgroups available on the server
>> were listed (so that I could subscribe to them). But maybe it was just
>> common lag.
>
> D accepts UTF source files - http://www.digitalmars.com/d/lex.html
>
> Set your editor's encoding as UTF8 to preserve non-ASCII characters. Even
> humble old Notepad can do this.
>
>

Doh! I'm so stick with ASCII, that UTF scares me! :) But yeah, that's good  
to know.



More information about the Digitalmars-d mailing list