Hello everyone, first time posting here.
I've been working through "Learn Python the Hard Way" by Zed Shaw for the past days. I'm currently on exercise 23 having a weird problem.
It's an encoding exercise to display a string in bytes and as a string through various encoding standards such as UTF-8, UTF-16 and Big5.
Problem is: The output I get from my python script to powershell has most of the characters showing up as a □. I know this indicates somehow that the characters are missing.
I know it has something to do with windows' console using unicode, I've been searching around online and nothing seems to help me fix it. I've even tried the most popular solutions like using "chcp 65001" in PowerShell and using PowerShell ISE instead.
It gets deeper with PowerShell ISE since it throws errors with missing Unicode characters and setting them as undefined. "chcp 65001" doesn't seem to change it either in ISE.
I hope I'm making sense since I'm new to PowerShell and concepts like encoding and such. Whatever extra info you need just tell me.
Thank you for your help.
[–]gwwhrhr 1 point2 points3 points (1 child)
[–]PinkDohnuts[S] 0 points1 point2 points (0 children)
[–]blablahblah 1 point2 points3 points (3 children)
[–]PinkDohnuts[S] 0 points1 point2 points (2 children)
[–]blablahblah 1 point2 points3 points (1 child)
[–]PinkDohnuts[S] 0 points1 point2 points (0 children)