0

I'm using MVC 5 with Entity framework 6

I create a lot of tables and seed the required data, if data language id in English, every thing is OK. but If I change the data to Arabic then Unknown letter is stored in DB

Example: If I seed in Name = "Abdallah" it will be stored correctly If I seed in Name = "عبدالله" It will display Unknown letters

Note: If I use the web interface (view) to set the field Name = "عبدالله" it will store the value correctly

The project is works correctly without any errors

Abdallah Sabri
  • 431
  • 4
  • 20

1 Answers1

0

I fixed this issue by using the second solution from this answer

  1. Open Configuration.cs file.
  2. Select advanced save options advanced save options
  3. Then, Select utf-8 and save file utf-8
  4. run update-databse command.
Community
  • 1
  • 1