# Tag path name(not ASCII) queryTagHistory

**URL:** <https://forum.inductiveautomation.com/t/tag-path-name-not-ascii-querytaghistory/54596>\
**Category:** Ignition\
**Created:** [January 3, 2022, 11:42am UTC](https://forum.inductiveautomation.com/t/tag-path-name-not-ascii-querytaghistory/54596 "2022-01-03T11:42:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tadeja.saje](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@tadeja.saje](https://forum.inductiveautomation.com/u/tadeja.saje)\
**Post date:** [January 3, 2022, 11:42am UTC](https://forum.inductiveautomation.com/t/tag-path-name-not-ascii-querytaghistory/54596/1 "2022-01-03T11:42:38Z")

</div>

Hello,  
in function in gateway script I use system function [system.tag.queryTagHistory]

If I used tag path, which is not ASCII, it does not work.  
How write tag path, which contains not ASCII characters?

Example 1 does work:

```auto
tagpath= '[Ignition]pvše/Mal/P8:40601'
csv1=util.getHistoryTxt(tagpath,startDate,endDate)
system.file.writeFile(filename,csv)
filename1 = "/home/ignition/M8_0_.csv"
system.file.writeFile(filename1,csv1)

```

Example 2 work:

```auto
tagpath= '[Ignition]RV/Calc/zah_vRPF'
csv1=util.getHistoryTxt(tagpath,startDate,endDate)
system.file.writeFile(filename,csv)
filename1 = "/home/ignition/M8_csv"
system.file.writeFile(filename1,csv1)

```

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 3, 2022, 1:01pm UTC](https://forum.inductiveautomation.com/t/tag-path-name-not-ascii-querytaghistory/54596/2 "2022-01-03T13:01:34Z")

</div>

Use the `</>` (Preformatted Text) button for code, not the `"` (Blockquote) button. There should be a pencil icon below your post to allow you to edit it.

---

<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:** [January 3, 2022, 1:29pm UTC](https://forum.inductiveautomation.com/t/tag-path-name-not-ascii-querytaghistory/54596/3 "2022-01-03T13:29:57Z")

</div>

Try:

```auto
tagpath= u'[Ignition]pvše/Mal/P8:40601'

```

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 3, 2022, 1:38pm UTC](https://forum.inductiveautomation.com/t/tag-path-name-not-ascii-querytaghistory/54596/4 "2022-01-03T13:38:23Z")

</div>

> [@Transistor](#):
>
> Use the `</>` (Preformatted Text) button for code, not the `"` (Blockquote) button.

Your edit is still using blockquote. You need to mark it as code.
