Encoding of .tsk files

Discuss RoboTask here
Post Reply
userXXX
Posts: 58
Joined: Wed Jun 11, 2014 8:45 am

Encoding of .tsk files

Post 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.
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Encoding of .tsk files

Post 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 7933 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.
Oleg Yershov
Post Reply