質問編集履歴

2

コード付加

2018/07/06 01:07

投稿

trm
trm

スコア117

test CHANGED
File without changes
test CHANGED
@@ -1 +1,81 @@
1
1
  Active perl で日本語表示その他で文字化けがひどいのですがその対処法を教えて下さい。今はWINDOWS環境ですが近いうちにLinuxに移植するつもりです、そしたら直るっていうことはないですかね?
2
+
3
+
4
+
5
+ ```perl
6
+
7
+ #!C:/perl64/bin/perl
8
+
9
+ use utf8;
10
+
11
+ use CGI;
12
+
13
+ $query = new CGI;
14
+
15
+ use CGI qw(:standard);
16
+
17
+ use File::Copy;
18
+
19
+
20
+
21
+ require 'jcode.pl';
22
+
23
+ use jcode.pl;
24
+
25
+
26
+
27
+ binmode STDIN, ':utf8';
28
+
29
+ binmode STDOUT, ':utf8';
30
+
31
+ binmode STDERR, ':utf8';
32
+
33
+
34
+
35
+ #use strict;
36
+
37
+ #use warnings;
38
+
39
+ #use DBI;
40
+
41
+ #use DBD::SQLite;
42
+
43
+ #追加use
44
+
45
+ use utf8;
46
+
47
+ #use CGI;
48
+
49
+ #$query = new CGI;
50
+
51
+ #use CGI qw(:standard);
52
+
53
+ #use File::Copy;
54
+
55
+
56
+
57
+ #binmode STDIN, ':utf8';
58
+
59
+ #binmode STDOUT, ':utf8';
60
+
61
+ #binmode STDERR, ':utf8';
62
+
63
+
64
+
65
+ #use strict;
66
+
67
+ #use warnings;
68
+
69
+ #追加use終了
70
+
71
+
72
+
73
+ #binmode STDIN, ':encoding(cp932)';
74
+
75
+ #binmode STDOUT, ':encoding(cp932)';
76
+
77
+ #binmode STDERR, ':encoding(cp932)';
78
+
79
+ ```
80
+
81
+ コードの最初の部分です。このようにしても文字化けします。解決策の程、宜しくお願い致します。

1

情報の付加

2018/07/06 01:07

投稿

trm
trm

スコア117

test CHANGED
File without changes
test CHANGED
@@ -1 +1 @@
1
- Active perl で日本語表示その他で文字化けがひどいのですがその対処法を教えて下さい。
1
+ Active perl で日本語表示その他で文字化けがひどいのですがその対処法を教えて下さい。今はWINDOWS環境ですが近いうちにLinuxに移植するつもりです、そしたら直るっていうことはないですかね?