I have a few files that contain emojis in their names, and also a folder that has such. Commands like
os.path.realpath, etc. will cause this to happen. This is also a problem with pure windows installations of python2. ( https://bugs.python.org/issue35670?@ok_message=msg%20333100%20created%0Aissue%2035670%20created&@template=item )
I have not yet been able to test if this happens on non-windows installations of pypy2.
For example, say you have a folder simply called '🔭'. If you run python inside of it and run
os.getcwd() you will simply get
'??' as the result. This breaks MANY of my programs that depend on knowing exactly where they are, and knowing the contents of a directory to pass to other functions.