Page 1 of 1

Encoding of .tsk files

Posted: Thu Feb 23, 2017 5:20 pm
by userXXX
Hello,

my older task files on our file share are all encoded in "ANSI" (shown by notepad++).
If I create new tasks now, they all get encoded in "UTF-8 without BOM".

Using special german characters in task names and importing this data into out database, I'm now seeing wrong characters because of different encoding.

My question is: How can I control the way .tsk files are encoded? Is Robotask deciding about this or the VM or the OS or the file share or....?

Thank you.

Re: Encoding of .tsk files

Posted: Thu Feb 23, 2017 5:55 pm
by Oleg
Do not edit the task in task editor.
This is the header of each task file.

The task editor has the parameter "Unicode compatible" (see screenshot)
unicode.png
unicode.png (33.62 KiB) Viewed 7984 times
If this checkbox switched ON RoboTask encodes all strings in UTF-8 format when it save the task
Otherwise RoboTask saves the task in ANSI format. All old tasks keeps ANSI format.
The parameter is ON by default if you create new task.
Of course you can set any value as you wish.
But pay attention that ANSI format can break some Arabic symbols, Chinese and Japanese symbols.