# Bug OP-3081 - In repository module cannot see an ANSI file

Project: OpenProject
Status: rejected
URL: https://community.openproject.org/work_packages/OP-3081

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | Won't Fix |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

In repository module, when you go to a concrete file codified in ANSI (like the example attached), and click on “view” it returns:

Result (browser):

Internal error

An error occurred on the page you were trying to access.  
If you continue to experience problems please contact your OpenProject administrator for assistance.

If you are the OpenProject administrator, check your log files for details about the error.

OpenProject log:

F, [2016-08-29T17:22:12.728487 <mention class="mention" data-id="20738" data-type="work_package" data-text="#20738">#20738</mention>] FATAL — :  
ArgumentError (invalid byte sequence in UTF-8):  
app/controllers/repositories\_controller.rb:192:in \`gsub\!’  
app/controllers/repositories\_controller.rb:192:in \`entry’  
app/middleware/reset\_current\_user.rb:47:in \`call’  
app/middleware/params\_parser\_with\_exclusion.rb:40:in \`call’

to notice, it works on a Chiliproject pointing to this repository without any extra configuration.
