www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Error: Outside Unicode code space

reply Tony <tonytdominguez aol.com> writes:
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".
Jul 08 2021
parent reply Adam D Ruppe <destructionator gmail.com> writes:
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.
Jul 08 2021
parent Tony <tonytdominguez aol.com> writes:
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!
Jul 09 2021