# Change file encoding

## ![](/files/VRhAMvQGj22medU8cFaK) Change file encoding

### Description <a href="#description" id="description"></a>

The Change File Encoding transform changes a text file from one encoding to another.

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | ?            |
| Flink      | ?            |
| Dataflow   | ?            |

### Options

* Transform name : the name of the transform, unique in a pipeline
* Source file
  * Filename field : the name of the input field which will carry the file names at runtime
  * Source encoding: the encoding of the text files
  * Add source filename to the result filenames? : Check this if you want to add the source file(s) automatically to the files list of the result of the pipeline.
* Target file
  * Target filename field: the name of the input field which will contain the target (output) file name at runtime
  * Create parent folder: checking this field automatically creates the output folder specified in the target filename field.
  * Target encoding: you can select the target encoding here
  * Add target filename to the result filenames? : Check this if you want to add the target file(s) automatically to the files list of the result of the pipeline.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/changefileencoding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
