Error: Outside Unicode code space

Tony tonytdominguez at aol.com
Fri Jul 9 08:16:26 UTC 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!


More information about the Digitalmars-d-learn mailing list