Raw data:
Account 1234 � Rent
Running this in MySQL by manually executing a script, and then also executing the script using a Python shell:
SELECT
SUBSTRING_INDEX(SUBSTRING_INDEX(Account,':',-1),' � ',-1) as Description,
SUBSTRING_INDEX(SUBSTRING_INDEX(Account,':',-1),' � ',1) as Acct_Number
FROM table1
MySQL Output (correct one)
Acct_Number Description
1234 Rent
Python Output (incorrect one)
Acct_Number Description
1234 1234 � Rent
Is there a way to get python to read this bizarre � character? Have successfully used Python to run script on similar Account data (also using substring index) that includes a - instead of this � character, and it works totally fine.
In case this character is not showing in this post, here is a link to which I am referring to: https://apps.timwhitlock.info/unicode/inspect?s=%EF%BF%BD