POV-Ray : Newsgroups : povray.beta-test : Question concerning "Illegal character" Server Time
22 Dec 2024 09:44:24 EST (-0500)
  Question concerning "Illegal character" (Message 1 to 3 of 3)  
From: ThH
Subject: Question concerning "Illegal character"
Date: 9 Feb 2017 08:43:04
Message: <589c71e8$1@news.povray.org>
File 'A_Scene.pov' line 34: Parse Error: Illegal character in input file,
  value is c2.
Fatal error in parser: Cannot parse input.
Render failed

My Question:

How hard would it be to make this more verbose?

Something like in addition print the line with the illegal character marked.

Here is the line of code povray is complaining about:

    object { Special_Box(<0,0,0>,<-1,1,1>,.25,.1) translate x*1 }

-- 
Thorsten aka ThH


Post a reply to this message

From: clipka
Subject: Re: Question concerning "Illegal character"
Date: 9 Feb 2017 10:35:53
Message: <589c8c59$1@news.povray.org>
Am 09.02.2017 um 14:43 schrieb ThH:
> File 'A_Scene.pov' line 34: Parse Error: Illegal character in input file,
>  value is c2.
> Fatal error in parser: Cannot parse input.
> Render failed
> 
> My Question:
> 
> How hard would it be to make this more verbose?
> 
> Something like in addition print the line with the illegal character
> marked.

Not sure; I'd have to look. It would probably be quite easy to print the
column number, as I think that information is already passed from the
parser to the front-end; the offending line's content, however, is not.


> Here is the line of code povray is complaining about:
> 
>    object { Special_Box(<0,0,0>,<-1,1,1>,.25,.1) translate x*1 }

The "c2" is probably the start of a multi-byte UTF-8 character,
representing any of the Unicode codepoints from U+00A0 (c2 a0) to U+00BF
(c2 bf). Hot candidates are NO-BREAK SPACE (U+00A0, which looks just
like a regular space) or SOFT HYPHEN (U+00AD, which may look just like a
regular hyphen or be entirely invisble), or maybe CEDILLA (U+00B8, which
might resemble a comma).


Post a reply to this message

From: ThH
Subject: Re: Question concerning "Illegal character"
Date: 9 Feb 2017 10:52:47
Message: <589c904f@news.povray.org>
Am 09.02.2017 um 16:35 schrieb clipka:

> Not sure; I'd have to look. It would probably be quite easy to print the
> column number, as I think that information is already passed from the
> parser to the front-end; the offending line's content, however, is not.

Would be great. Yes please :))

> The "c2" is probably the start of a multi-byte UTF-8 character,
> representing any of the Unicode codepoints from U+00A0 (c2 a0) to U+00BF
> (c2 bf). Hot candidates are NO-BREAK SPACE (U+00A0, which looks just
> like a regular space) or SOFT HYPHEN (U+00AD, which may look just like a
> regular hyphen or be entirely invisble), or maybe CEDILLA (U+00B8, which
> might resemble a comma).

Invisible to me. Typed the line again... It worked \o/

-- 
Thorsten aka ThH


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.