# Extract the WString Datatype in Ignition

**URL:** <https://forum.inductiveautomation.com/t/extract-the-wstring-datatype-in-ignition/55148>\
**Category:** Ignition\
**Created:** [January 19, 2022, 3:39am UTC](https://forum.inductiveautomation.com/t/extract-the-wstring-datatype-in-ignition/55148 "2022-01-19T03:39:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartik\_I](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@Kartik\_I](https://forum.inductiveautomation.com/u/Kartik_I)\
**Post date:** [January 19, 2022, 3:39am UTC](https://forum.inductiveautomation.com/t/extract-the-wstring-datatype-in-ignition/55148/1 "2022-01-19T03:39:21Z")

</div>

Hello,

```
 Can anyone tell me how to extract the Wstring datatype in Ignition.

```

- Ignition version - Ignition 7.9
- PLC model/version - Siemens 1500 PLC
- Driver - Siemens 1500
- Structure of your datatype and the element involved - **Wstring**

Thanks,  
Kartik

---

<div class="post-metadata">

**Author:** ![Nick\_Grannas](https://avatars.discourse-cdn.com/v4/letter/n/8baadc/32.png) [@Nick\_Grannas](https://forum.inductiveautomation.com/u/Nick_Grannas)\
**Post date:** [May 3, 2022, 10:26am UTC](https://forum.inductiveautomation.com/t/extract-the-wstring-datatype-in-ignition/55148/2 "2022-05-03T10:26:18Z")

</div>

Hello Kartik,

Did you manage to find a solution for this?  
I have the same issue and I have spent hours googling for a solution and I haven’t found anything substantial so far.

Best regards,  
Nick

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 3, 2022, 10:29am UTC](https://forum.inductiveautomation.com/t/extract-the-wstring-datatype-in-ignition/55148/3 "2022-05-03T10:29:44Z")

</div>

I would expect you to have to read the 16-bit characters as integers, then decode from UTF-16. Blegh.

---

<div class="post-metadata">

**Author:** ![Kartik\_I](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@Kartik\_I](https://forum.inductiveautomation.com/u/Kartik_I)\
**Post date:** [May 4, 2022, 5:46am UTC](https://forum.inductiveautomation.com/t/extract-the-wstring-datatype-in-ignition/55148/4 "2022-05-04T05:46:50Z")

</div>

Hey Nick,

```
We managed to get the output via OPC server method.

```

Thanks,  
Kartik
