質問編集履歴
1
大幅な書き換え
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Atom-runnerで日本語が文字化け
|
test
CHANGED
@@ -1,41 +1,75 @@
|
|
1
|
-
###
|
1
|
+
###時間が経つと文字化けする?
|
2
2
|
|
3
|
-
|
3
|
+
起動当初は正常に表示されるのですが、atomを起動してしばらくコードを入力してから実行すると文字化けが起こります。
|
4
4
|
|
5
|
-
|
5
|
+
###init.coffee style.less を設定しても治らない
|
6
|
+
|
7
|
+
以下のようにinit.coffee style.lessを設定しても治りません
|
6
8
|
|
7
9
|
|
8
10
|
|
9
|
-
|
11
|
+
```init
|
10
12
|
|
11
|
-
|
13
|
+
# Your init script
|
12
14
|
|
13
|
-
|
15
|
+
#
|
14
16
|
|
17
|
+
# Atom will evaluate this file each time a new window is opened. It is run
|
18
|
+
|
19
|
+
# after packages are loaded/activated and after the previous editor state
|
20
|
+
|
21
|
+
# has been restored.
|
22
|
+
|
23
|
+
#
|
24
|
+
|
25
|
+
# An example hack to log to the console when each text editor is saved.
|
26
|
+
|
27
|
+
#
|
28
|
+
|
29
|
+
# atom.workspace.observeTextEditors (editor) ->
|
30
|
+
|
31
|
+
# editor.onDidSave ->
|
32
|
+
|
15
|
-
so
|
33
|
+
# console.log "Saved! #{editor.getPath()}"
|
34
|
+
|
35
|
+
process.env.PYTHONIOENCODING = "utf-8";
|
16
36
|
|
17
37
|
```
|
18
38
|
|
19
|
-
|
39
|
+
```style
|
20
40
|
|
21
|
-
|
41
|
+
// style UI elements inside atom-text-editor
|
22
42
|
|
23
|
-
tit
|
43
|
+
atom-text-editor .cursor {
|
24
44
|
|
25
|
-
|
45
|
+
// border-color: red;
|
46
|
+
|
47
|
+
}
|
26
48
|
|
27
49
|
|
28
50
|
|
29
|
-
|
51
|
+
.atom-runner pre{
|
30
52
|
|
31
|
-
fo
|
53
|
+
font-family: meiryo;
|
32
54
|
|
33
|
-
|
55
|
+
font-size: 14px;
|
56
|
+
|
57
|
+
}
|
34
58
|
|
35
59
|
```
|
36
60
|
|
37
|
-
t
|
61
|
+
※style.lessは長いので省略しています。
|
38
62
|
|
39
63
|
|
40
64
|
|
65
|
+
もちろん、ファイルは保存して終了し、Atomの再起動を行いました。
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
###環境
|
70
|
+
|
71
|
+
Windows10
|
72
|
+
|
73
|
+
Python3.7.4
|
74
|
+
|
41
|
-
|
75
|
+
WebDriverとBeautifulSoupなどを使って、スクレイピングを行っています。
|