Showing 1 changed files with 4 additions and 4 deletions
+4 -4
lib/Gitprep/Git.pm
... ...
@@ -12,7 +12,7 @@ use POSIX 'floor';
12 12
 
13 13
 # Attributes
14 14
 has 'bin';
15
-has encoding => 'UTF-8';
15
+has default_encoding => 'UTF-8';
16 16
 has 'rep_home';
17 17
 has text_exts => sub { ['txt'] };
18 18
 has 'time_zone_second';
... ...
@@ -399,7 +399,7 @@ sub blob_content_type {
399 399
   # Content type
400 400
   my $type = $self->blob_mime_type($user, $project, $rev, $file);
401 401
   if ($type eq 'text/plain') {
402
-    $type .= "; charset=" . $self->encoding;
402
+    $type .= "; charset=" . $self->default_encoding;
403 403
   }
404 404
 
405 405
   return $type;
... ...
@@ -1675,7 +1675,7 @@ sub _chop_str {
1675 1675
 sub _dec {
1676 1676
   my ($self, $str) = @_;
1677 1677
   
1678
-  my $enc = $self->encoding;
1678
+  my $enc = $self->default_encoding;
1679 1679
   
1680 1680
   my $new_str;
1681 1681
   eval { $new_str = decode($enc, $str) };
... ...
@@ -1686,7 +1686,7 @@ sub _dec {
1686 1686
 sub _enc {
1687 1687
   my ($self, $str) = @_;
1688 1688
   
1689
-  my $enc = $self->encoding;
1689
+  my $enc = $self->default_encoding;
1690 1690
   
1691 1691
   return encode($enc, $str);
1692 1692
 }