Some unicode characters, like ẋ (xdot), ẍ (xdotdot) and ẏ (ydot), show up correctly on screen, but are replaced with a squares when printing the included python file. Strangly enough, this does not happen all the time, but only on some lines.
xdot_test.pdf

xdot_test.py
Actually, it seems ẋ prints correctly when there is a two-byte character z̈ (zdotdot, \u007a\u0308) on the same line, but is replaced by a square when z̈ is absent.
xdot_test2.pdf
xdot_test2.py
Some unicode characters, like ẋ (xdot), ẍ (xdotdot) and ẏ (ydot), show up correctly on screen, but are replaced with a squares when printing the included python file. Strangly enough, this does not happen all the time, but only on some lines.
xdot_test.pdf

xdot_test.py
Actually, it seems ẋ prints correctly when there is a two-byte character z̈ (zdotdot, \u007a\u0308) on the same line, but is replaced by a square when z̈ is absent.
xdot_test2.pdf
xdot_test2.py