CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Thu Jan 17, 2019 2:28 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Write file in unicode
PostPosted: Tue Mar 28, 2017 10:15 am 
Offline

Joined: Thu Oct 13, 2016 4:19 pm
Posts: 48
Location: Presezzo, Bergamo (ITA)
Hi all,
I'm trying to write a file with the SysFile library. How can I write unicode characters? It seems the library writes only in ANSI.

Thank you,
Regards.
Massimo


Top
   
PostPosted: Sun Dec 09, 2018 4:05 pm 
Offline

Joined: Wed Feb 11, 2015 11:11 am
Posts: 17
Massimo.Milluzzo wrote:
Hi all,
I'm trying to write a file with the SysFile library. How can I write unicode characters? It seems the library writes only in ANSI.

Thank you,
Regards.
Massimo

Hi, I'm intereste in this too. I've made a lot research on it and no CoDeSys based device were able to save file in unicode. Only ANSI... But I've used Festo PLC, which uses Linux RT and the files saved on SD card by SysLibFile were in UTF-8...


Top
   
PostPosted: Mon Dec 10, 2018 6:05 am 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 120
There is no problem, just use WSTRING type and byte ordermark.
Library writes not ANSI or Unicode or something else, library just writes data.

Attachment:
uni1.png


Attachment:
uni2.png


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Mon Dec 10, 2018 9:04 am 
Offline

Joined: Wed Feb 11, 2015 11:11 am
Posts: 17
e.kislov wrote:
There is no problem, just use WSTRING type and byte ordermark.
Library writes not ANSI or Unicode or something else, library just writes data.

uni1.png

uni2.png


Thanks a lot for this solution!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited