digitalmars.D.learn - Error: Outside Unicode code space
- Tony (10/10) Jul 08 2021 I copied some text from a web page into a comment and I get the
- Adam D Ruppe (5/8) Jul 08 2021 D supports stuff outside the ASCII code space just fine.
- Tony (3/11) Jul 09 2021 When I checked "Settings->Editor...->Encoding Settings" it was
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
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
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:When I checked "Settings->Editor...->Encoding Settings" it was set to WINDOWS-1252. Changing it to UTF-8 fixed the issue. Thanks!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 09 2021