-
Notifications
You must be signed in to change notification settings - Fork 1
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
Characters encoding in SQL server on AWS server #18
Comments
The solution is actually to encode the characters at the point of creating the engine as shown in the picture below code that was added : '?charset=utf8mb4' final code:
|
Although I succeeded one time to insert a user with a special string that requires UTS-8mb4 to the database - it didn't occur again. I have tried multi disciplines to solve the problem, however none have worked. all changes have been made in user class. |
for some users, all characters require encoding - Thus getting AttributeError. After conducting an experiment on scraping 500 users the code work fine. |
when running the code on a local server our Char encoding default is UTF-8mb4 (that's 4 bytes)
The AWS Char encoding default is UTF-8 (that's 3 bytes) as shown in the picture.
In this case, special characters (Chinese, Russian, figures, etc.) could not be encoded Thus the program crushes.
To solve the issue we can choose 2 options:
The text was updated successfully, but these errors were encountered: