Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode Spanish characters #19

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Conversation

anuforok
Copy link

No description provided.

anuforok and others added 22 commits August 20, 2021 06:18
#6614 Sanitize function to fix spanish encoded characters from REDCap
change ftfy version for python2.7
available ftfy version for python2.7
update code to work with ftfy version
import sys to fix UnicodeDecodeError
remove sys and try unicode_escape
enhance code to eliminate duplicate ? characters
remove na values from data frame
@anuforok anuforok requested a review from lav-patel September 13, 2021 11:27
char = '?'

for i in range(len(y)):
if (y[i] == char and i != (l-1) and
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should make a comment on what I am accomplishing here

x = str(w).decode('unicode_escape').encode('ascii','replace')
y = x.decode('utf-8')
z = []
l = len(y)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to readable variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant