> For the complete documentation index, see [llms.txt](https://documentation.efalia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.efalia.com/documentations/efalia-compose/mapping-suite/onyx-server/utilisation/comment-prendre-en-entree-un-fichier-pcl-encode-en-utf-8.md).

# Comment prendre en entrée un fichier PCL encodé en UTF-8

## Introduction

Par défaut MAPPING est compatible juste avec des flux PCL encodés en ANSI. Il est possible avec MAPPING de prendre un fichier **pcl encodé en UTF-8** en entrée afin de le convertir en XPS, PDF ou autres.

## Paramétrage

Pour forcer le convertisseur à prendre en entrée un PCL UTF-8, nous devons utiliser le paramètre suivant : (dans un profil ou avec le paramètre -param )

```
<decodeutf8>ON</decodeutf8>
```

Ce paramètre est utilisé uniquement lors de la conversion fromPCL to XPS.

Il peut quand même être renseigné dans un profil toPDF

## Exemples

### Conversion d’un fichier PCL(UTF-8) en XPS via un profil de conversion

```
<xps>
   <label>XPS</label>
   <language>XPS</language>
   <decodeutf8>ON</decodeutf8>
 </xps>
```

Exécution de la commande :

```
/apps/mapping/bin/map_xps "-fromPCL" "-toXPS" "-infile:/apps/mapping/infile/infile.pcl" "-outfile:/apps/mapping/results/out/out.xps" "-profile:xps"
```

### Conversion d’un fichier PCL(UTF-8)en XPS sans profil de conversion

Exécution de la commande :

```
/apps/mapping/bin/map_xps "-fromPCL" "-toXPS" "-infile:/apps/mapping/infile/infile.pcl" "-outfile:/apps/mapping/results/out/out.xps" "-param:decodeutf8=ON"
```

### Conversion d’un fichier PCL(UTF-8) en PDF via un profil de conversion

Afin d’éviter de passer par un profil de conversion en XPS puis en PDF, il est possible de mettre la valeur decodeutf8 à ON directement dans le profil de conversion PDF :

```
 <pdf>
   <label>PDF</label>
   <language>PDF</language>
   <decodeutf8>ON</decodeutf8>
 </pdf>
```

Exécution de la commande :

```
/apps/mapping/bin/map_xps "-fromPCL" "-toXPS" "-infile:/apps/mapping/infile/infile.pcl" "-outfile:/apps/mapping/results/out/out.xps" "-profile:pdf"
```

### Conversion d’un fichier PCL(UTF-8)en PDF sans profil de conversion

Exécution de la commande :

```
/apps/mapping/bin/map_xps "-fromPCL" "-toPDF" "-infile:/apps/mapping/infile/infile.pcl" "-outfile:/apps/mapping/results/out/out.xps" "-param:decodeutf8=ON"
```

mots clés:conversion PCL, PCL UTF8, PCL UTF-8, from PCL, fromPCL, convertion PCL, conversion from PCL, conversion de PCL, conversion from PCL, comment convertir un pcl UTF8, how to convert a UTF-8 PCL


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://documentation.efalia.com/documentations/efalia-compose/mapping-suite/onyx-server/utilisation/comment-prendre-en-entree-un-fichier-pcl-encode-en-utf-8.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
