Git Product home page Git Product logo

Comments (6)

mna avatar mna commented on August 19, 2024 1

Indeed, if the input contained the actual replacement char, it was incorrectly detected as an encoding error. It's fixed in the branch fix-replacement-char, could you give it a try and let me know if all's good for you? I'll merge on master after that.

Thanks,
Martin

from pigeon.

mna avatar mna commented on August 19, 2024

Hello,

You have that error when you try to parse an input file that should conform to your pigeon (rules) file? Or when trying to build the parser from your rules file? That error indicates that your input is not valid utf8, and depending on the step at which it occurs, the invalid input may be your grammar or the file you're trying to parse with that grammar.

Martin

from pigeon.

RedSkotina avatar RedSkotina commented on August 19, 2024

I get this error while parsing my input file which contain this ACTUAL character inserted by user editor

/* blah blah blah � */

if remove this character from line then all fine. I look for any method for catching this error.
REPLACEMENT CHARACTER is not valid utf-8?

from pigeon.

mna avatar mna commented on August 19, 2024

Replacement character is the character returned when the input contains
invalid utf8.
On Tue, Aug 30, 2016 at 01:40 RedSkotina [email protected] wrote:

I get this error while parsing my input file which contain this ACTUAL
character inserted by user editor

/* blah blah blah � */
if remove this character from line then all fine. I look for any method
for catching this error.
REPLACEMENT CHARACTER is not valid utf-8?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAqQoFyYcSocwuKvJp6Z1lVJAEabR_cfks5qk8JpgaJpZM4JvdqI
.

from pigeon.

RedSkotina avatar RedSkotina commented on August 19, 2024

but my input file contain byte sequence 0xEF 0xBF 0xBD . user save this sequence in the file.
can i parse this sequence?

from pigeon.

RedSkotina avatar RedSkotina commented on August 19, 2024

yes. error has gone away. thanks

from pigeon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.