GithubHelp home page GithubHelp logo

Comments (9)

cool-RR avatar cool-RR commented on May 19, 2024

I think this isn't about PySnooper and unicode, it's about your shell not supporting the unicode characters. Please give a full reproduceable example.

from pysnooper.

cool-RR avatar cool-RR commented on May 19, 2024

Also, your Python version.

from pysnooper.

cc20101001 avatar cc20101001 commented on May 19, 2024

I had the same problem before in python2.7 before,give a full reproduceable example,let me try it,thanks

from pysnooper.

cc20101001 avatar cc20101001 commented on May 19, 2024

d = "s*&F.。、]}】df"

in python2.7,Sometimes format not easy to use than %

use % replace format can resolve the problem or use format with unicode characters

from pysnooper.

cool-RR avatar cool-RR commented on May 19, 2024

I reject #77. I won't change my string formatting method without proof that it's the cause of the problem. I'm waiting for a full reproducible example.

from pysnooper.

cc20101001 avatar cc20101001 commented on May 19, 2024
# coding=utf-8
from pysnooper import pysnooper


@pysnooper.snoop()
def test_format():
    d = "s*&F.。、]}】df"
    return d


test_format()

you can try it in python2.7,format Imperfect support for character sets。it is the same as 93edf6f

from pysnooper.

alexmojaki avatar alexmojaki commented on May 19, 2024

I think it makes sense to add the u prefix as you've done in #77. I think you're confusing everyone by talking about the .format method and %, which is unrelated.

from pysnooper.

cc20101001 avatar cc20101001 commented on May 19, 2024

I think it makes sense to add the u prefix as you've done in #77. I think you're confusing everyone by talking about the .format method and %, which is unrelated.

i'm sorry

from pysnooper.

cool-RR avatar cool-RR commented on May 19, 2024

I was able to replicate the problem on my machine, thank you @cc20101001 . I'll give it a think.

from pysnooper.

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.