Thread overview
Error: Outside Unicode code space
Jul 09, 2021
Tony
Jul 09, 2021
Adam D Ruppe
Jul 09, 2021
Tony
July 09, 2021

I copied some text from a web page into a comment and I get the error
"Error: Outside Unicode code space".

This appears to be an incorrect error message. It is upset about double quotes that lean forward or backwards, and apostrophes that lean backwards. And dashes that aren't the keyboard dash character.

The editor I am using (Code::Blocks) displays the characters just fine. So it seems that the error message should be "Error: Outside the ASCII code space".

July 09, 2021

On Friday, 9 July 2021 at 03:09:52 UTC, Tony wrote:

>

The editor I am using (Code::Blocks) displays the characters just fine. So it seems that the error message should be "Error: Outside the ASCII code space".

D supports stuff outside the ASCII code space just fine.

Are you sure the file is saved as utf 8? if it is something like Windows 1252 it can still often be displayed but dmd won't know what to make of it.

July 09, 2021

On Friday, 9 July 2021 at 03:32:31 UTC, Adam D Ruppe wrote:

>

On Friday, 9 July 2021 at 03:09:52 UTC, Tony wrote:

>

The editor I am using (Code::Blocks) displays the characters just fine. So it seems that the error message should be "Error: Outside the ASCII code space".

D supports stuff outside the ASCII code space just fine.

Are you sure the file is saved as utf 8? if it is something like Windows 1252 it can still often be displayed but dmd won't know what to make of it.

When I checked "Settings->Editor...->Encoding Settings" it was set to WINDOWS-1252. Changing it to UTF-8 fixed the issue. Thanks!