GithubHelp home page GithubHelp logo

pycharm_unicode_test's Introduction

run config img.png

# unicode.env
UNICODE_VALUE=/🐜/⚙️/🐳
NOT_UNICODE_VALUE=/this/is/plain/text

expected output: ( broken )

comparison with unicode value loaded from .env file
expected_value: /🐜/⚙️/🐳
loaded_value: /�/⚙�/�
expected_unicode_value == loaded_unicode_value: False
expected bytes: <b'/\xf0\x9f\x90\x9c/\xe2\x9a\x99\xef\xb8\x8f/\xf0\x9f\x90\xb3'> loaded bytes <b'/\xc3\xb0\xc5\xb8\xef\xbf\xbd\xc5\x93/\xc3\xa2\xc5\xa1\xe2\x84\xa2\xc3\xaf\xc2\xb8\xef\xbf\xbd/\xc3\xb0\xc5\xb8\xef\xbf\xbd\xc2\xb3'>
********************************************************************************
comparison with unicode value loaded from environment config
expected_value: /🐜/⚙️/🐳
loaded_value: /🐜/⚙️/🐳
expected_unicode_value == loaded_unicode_value: True
expected bytes: <b'/\xf0\x9f\x90\x9c/\xe2\x9a\x99\xef\xb8\x8f/\xf0\x9f\x90\xb3'> loaded bytes <b'/\xf0\x9f\x90\x9c/\xe2\x9a\x99\xef\xb8\x8f/\xf0\x9f\x90\xb3'>
********************************************************************************
comparison with not unicode value loaded from .env file
expected_value: /this/is/plain/text
loaded_value: /this/is/plain/text
expected_unicode_value == loaded_unicode_value: True
expected bytes: <b'/this/is/plain/text'> loaded bytes <b'/this/is/plain/text'>

PY-241.14494.241, JRE 17.0.10+8-b1207.12x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 4608.0x2880.0, 2560.0x1440.0, 2560.0x1440.0 Auto-uploaded logs URL (accessible to JetBrains employees only): https://uploads.jetbrains.com/browse#2024_04_05_JwUrGMeMZ2bfaNDeR4irzW

pycharm_unicode_test's People

Contributors

gornoka avatar

Watchers

 avatar

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.