Home > Back-end >  how to insert arabic characters in database?
how to insert arabic characters in database?

Time:02-03

I'm a Django beginner student that doesn't have much experiences with database since my country uses Arabic characters , I tried to add some Arabic words in my database instead of Eng., but even when I was typing it in shell (sqlite3) it showed it as ??? how can I insert a word likeمرد‍‍ into database . also if database doesn't show it correctly why when I add a comment through site in Arabic letters it works perfect?

CodePudding user response:

According to django it supports Unicode data everywhere. You don't need to do anything when Creating Arabic characters in the database using SQLite. if you are on windows 10 just run chcp 1256 in the cmd to change code page session to Code Page 1256 Windows Arabic . if it didn't work just use the Django admin to create your database

  • Related