# \<?xml version="1.0" encoding="ISO-8859-1"?

**URL:** https://discourse.vtk.org/t/xml-version-1-0-encoding-iso-8859-1/1304
**Category:** Support
**Tags:** file-formats
**Created:** [July 8, 2019, 3:00pm UTC](https://discourse.vtk.org/t/xml-version-1-0-encoding-iso-8859-1/1304 "2019-07-08T15:00:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Vaya\_Putra](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vaya_putra/32/587_2.png) [@Vaya\_Putra](https://discourse.vtk.org/u/Vaya_Putra)
#### Post date: [July 8, 2019, 3:00pm UTC](https://discourse.vtk.org/t/xml-version-1-0-encoding-iso-8859-1/1304/1 "2019-07-08T15:00:30Z")

</div>

i got open source simulation,  
and how to write the output file used \<?xml version="1.0" encoding="ISO-8859-1"?\>  
i am facing that i can not read that output file  
write as below

> PointData  
> DataArray type=“Float64” Name=“displacement” NumberOfComponents=“3” format=“binary” RangeMin=“0” RangeMax=“0”  
> AQAAAACAAADABgAAFgAAAA==eJxjYBgFo2AUjIJRMAqGHgAABsAAAQ==

what i have done is trying to chance encoding = UFT-8 or etc to obtain the output file in ASCI.

anyone have same problem with me?

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [July 10, 2019, 3:34pm UTC](https://discourse.vtk.org/t/xml-version-1-0-encoding-iso-8859-1/1304/2 "2019-07-10T15:34:54Z")

</div>

It seems to me that each part up to a == in

> [@Vaya\_Putra](#):
>
> AQAAAACAAADABgAAFgAAAA==eJxjYBgFo2AUjIJRMAqGHgAABsAAAQ==

is encoded in Base-64, a format used to encode attachments in e-mails.

---

<div class="post-metadata">

### Author: ![Vaya\_Putra](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vaya_putra/32/587_2.png) [@Vaya\_Putra](https://discourse.vtk.org/u/Vaya_Putra)
#### Post date: [July 10, 2019, 3:40pm UTC](https://discourse.vtk.org/t/xml-version-1-0-encoding-iso-8859-1/1304/3 "2019-07-10T15:40:28Z")

</div>

do you know how to convert, so i can extract the input file?

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [July 10, 2019, 5:08pm UTC](https://discourse.vtk.org/t/xml-version-1-0-encoding-iso-8859-1/1304/4 "2019-07-10T17:08:01Z")

</div>

Your code is in which language?

---

<div class="post-metadata">

### Author: ![Vaya\_Putra](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vaya_putra/32/587_2.png) [@Vaya\_Putra](https://discourse.vtk.org/u/Vaya_Putra)
#### Post date: [July 11, 2019, 2:10am UTC](https://discourse.vtk.org/t/xml-version-1-0-encoding-iso-8859-1/1304/5 "2019-07-11T02:10:50Z")

</div>

i used MATLAB

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [July 11, 2019, 6:58pm UTC](https://discourse.vtk.org/t/xml-version-1-0-encoding-iso-8859-1/1304/6 "2019-07-11T18:58:12Z")

</div>

Then you can use the `base64decode()` function to do it: [https://www.mathworks.com/help/matlab/ref/matlab.net.base64decode.html](https://www.mathworks.com/help/matlab/ref/matlab.net.base64decode.html). Evidently the result is a binary content.
