Thread overview | |||||
---|---|---|---|---|---|
|
January 17, 2006 How to compile a file in UTF-8 (with signature) format? - utf8-hello.d | ||||
---|---|---|---|---|
| ||||
Attachments: | Hi all, When I try to compile the anexed file, which is in UTF-8 (with BOM signature) format I get this error: "utf8-hello.d: module utf8-hello has non-identifier characters in filename, use module declaration instead" Isn't the D compiler supposed to handle UTF formats? Thanks, -- Marcio Faustino |
January 17, 2006 Re: How to compile a file in UTF-8 (with signature) format? - utf8-hello.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to marciof | marciof wrote:
> Hi all,
>
> When I try to compile the anexed file, which is in UTF-8 (with BOM signature)
> format I get this error:
>
> "utf8-hello.d: module utf8-hello has non-identifier characters in filename, use
> module declaration instead"
>
> Isn't the D compiler supposed to handle UTF formats?
This has nothing to do with the file being UTF-8. Rename the file utf8_hello.d or add a module utf8_hello; at the beginning of the file.
By default, D sets the module name to the same as the file name. Module names may not contain dashes.
/Oskar
|
January 17, 2006 Re: How to compile a file in UTF-8 (with signature) format? - utf8-hello.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Oskar Linde | In article <dqih1n$11ni$1@digitaldaemon.com>, Oskar Linde says... > >This has nothing to do with the file being UTF-8. Rename the file utf8_hello.d or add a module utf8_hello; at the beginning of the file. > >By default, D sets the module name to the same as the file name. Module names may not contain dashes. > >/Oskar Thanks and sorry for my silly question :-) |
Copyright © 1999-2021 by the D Language Foundation