S
S
sorry_i_noob2018-10-23 13:12:40
git
sorry_i_noob, 2018-10-23 13:12:40

The git diff command writes krakozyabry instead of Cyrillic. How to fix?

Hello. Here is a screenshot. 5bcef3f4be252988800789.png
How to fix it?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
sorry_i_noob, 2018-11-10
@sorry_i_noob

Finally I solved this problem! I want to share my solution with you. Here it is:
https://stackoverflow.com/questions/41139067/git-l...

A
Anatoly Medvedev, 2018-10-23
@balamyt92

There are two options

  1. Set the required encoding in the terminal using the command CHCP номер_кодировки(probably you need 65001)
  2. Don't use cmd.exe

T
toxa82, 2018-10-23
@toxa82

try https://habr.com/post/74839/

S
Stanislav Fateev, 2015-08-17
@svfat

The main problem with your option is that the number of drugs in the course is limited - what if you need 100 or 1000 of them? Will the table have the same number of columns? This is solved by three tables. Here's the pseudocode:

# Это курс - он связан с моделью юзера
class Course(models.Model):
    days = models.IntegerField()
    start_date = models.DateField()
    user =  models.ForeignKey(User)

# Это лекарство - оно само по себе
class Med(models.Model):
    med = models.ChoiceField()
    time = models.ChoiceField()
    med_amount = models.CharField()
    med_type = models.ChoiceField()
    descr = models.TextField()
    video = modesl.URLField()
    week = models.ChoiceField()

# Это связывает курс с лекарством (и позволяет присваивать их неограниченное число раз)
class CourseMed(models.Model):
    course = models.ForeignKey(Course)
    med = models.ForeignKey(Med)

Using the built-in admin panel, such an application can be written in 15 minutes

V
Vladimir Martyanov, 2015-08-17
@vilgeforce

It is better to read about the third normal form and not ask such questions anymore.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question