Fix EDU-668 Broken encoding for Russian letters in New Project Wizard: write course...
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Thu, 4 Aug 2016 12:49:01 +0000 (15:49 +0300)
committerValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Fri, 5 Aug 2016 08:19:56 +0000 (11:19 +0300)
python/educational-core/student/src/com/jetbrains/edu/learning/courseGeneration/StudyProjectGenerator.java

index 69c870108e78e5683ff127e8feb407d7bf083113..55f5713b7a465b89c2c7cbcd39491e7ced9b3d64 100644 (file)
@@ -345,7 +345,7 @@ public class StudyProjectGenerator {
         courseInfos.addAll(getCoursesFromCache());
       }
 
-      writer = new PrintWriter(cacheFile);
+      writer = new PrintWriter(cacheFile, "UTF-8");
       for (CourseInfo courseInfo : courseInfos) {
         final String json = gson.toJson(courseInfo);
         writer.println(json);