Tag path name(not ASCII) queryTagHistory

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:

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:

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)

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.

Try:

tagpath= u'[Ignition]pvše/Mal/P8:40601'
2 Likes

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