Property: CharacterFormat for Formatter
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: CharacterFormat for Formatter
Property: CharacterFormat for Formatter
Specifies the coding for interpreting the strings in the file.
Object.CharacterFormat
Object | Formatter Object with this property | ||||||||||||
Object.CharacterFormat | Enumeration with read and write access and the following selection terms:
|
![]() | Note If you do not specify the coding, it is specified automatically. The first two bytes in the file are checked. If the first two bytes contain 0xFEFF, this indicates UTF16 coding. |
The following example reads a text channel. The text is UTF16-coded:
File.Formatter.TrimCharacters = " " File.Formatter.LineFeeds = vbNewLine File.Formatter.Delimiters = ";" File.Formatter.CharacterFormat = eUTF16 Dim oBlock: Set oBlock = File.GetStringBlock() Dim oChn : Set oChn = oBlock.Channels.Add("Texts", eString) Dim oMyGrp: Set oMyGrp = Root.ChannelGroups.Add("MyChannelGroup") Call oMyGrp.Channels.AddDirectAccessChannel(Channel)