Comments (4)
I'm not sure what's going on, but I guess clip.exe is using cp437
, because pyperclip.ENCODING = 'cp-437'
decodes properly.
However, the rest of my script assumes UTF-8, and my WSL2 terminal is using UTF-8 in general. I can't use cp-437 for everything anyway, since I need to handle a variety Unicode characters and that would just give endless encoding headaches.
Something has definitely changed, because everything was working perfectly up until a few weeks ago. I will keep investigating...
from pyperclip.
It seems like enabling "Beta: Use Unicode UTF-8 for worldwide language support" fixes my issue: https://superuser.com/a/1451686
Btw I'm on Windows 11 Pro. I'm really hoping that this option doesn't have any unintentional side effects 😬
My best guess for what I observed was that pyperclip was receiving text encoded with the OEM code page (as used in console applications; CP437 for en-us) instead of the ANSI code page (as used in GUI-subsystem applications; e.g., 1252 (Windows-1252).
from pyperclip.
Related Issues (20)
- Pyperclip stoped working (???) (Linux Mint 20.3)
- Please Consider Checking HAS_DISPLAY dynamically
- I got a weird bug HOT 2
- Add wheel/pyproject.toml? HOT 3
- Python 3.11.1 - error pyperclip: No module named '_ctypes' HOT 1
- ERROR: No .egg-info directory found in C:\Users\Ni\AppData\Local\Temp\pip-pip-egg-info-y2n30vc4
- Multi-clipboard Support
- Condense Linux and macOS and support BSD, headless Linux
- TypeError: 'dict' object is not callable HOT 1
- sdist is missing tox.ini
- Test output is polluted by TEST HOT 2
- copy_xclip hangs the terminal when you try to exit
- Is this project still active? HOT 2
- ⚠️ This module looks like isn't maintained anymore, use alternative: Clipman 😇 HOT 2
- How can I copy a string? HOT 1
- Why can't I package a program with this using pyinstall?
- How do you use pyperclip in termux? HOT 1
- Klipper backend appears to fail silently on Plasma 6 + Wayland HOT 1
- xclip installed but: Pyperclip could not find a copy/paste mechanism for your system HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyperclip.