GithubHelp home page GithubHelp logo

Comments (6)

flxo avatar flxo commented on July 22, 2024

The output of logcat is supposed to be text. Seems in your log stream someone is printing something weird. Can you please check the output of adb logcat -b all for something non ascii?

Maybe rogcat should replace non printable stuff with some kind of placeholder.

from rogcat.

drahnr avatar drahnr commented on July 22, 2024

How about replacing unprintable characters with \xVAL? Would keep the information intact without killing the stream.

from rogcat.

flxo avatar flxo commented on July 22, 2024

There is String::from_utf8_lossy which uses U+FFFD as a replacement. Not sure how to effectively iterate over the array and check for UTF8 validity.

from rogcat.

drahnr avatar drahnr commented on July 22, 2024

Well, utf8 is multibyte to essentially you would need to start from a known good and then have a state machine track each character along the bytestream, but who does that?

*_lossy is good enough.

from rogcat.

klefevre avatar klefevre commented on July 22, 2024

@flxo Here is a sentence that make stop rogcat but work with logcat:

08-29 15:40:12.273 11909 12010 V G2P-SRPOL: After conversion: Paramètres, Param�tres, 11, 10

from rogcat.

flxo avatar flxo commented on July 22, 2024

Thanks for the report!

I pushed #5c0194 which allows non UTF8 bytes in the input. They will be replaced with . Seems like some people put weird stuff into their logs ;-).

from rogcat.

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.