V
V
ViktorGuerro2020-03-26 14:06:45
Character encoding
ViktorGuerro, 2020-03-26 14:06:45

How to convert text to UTF-16LE UNIX in 1C?

The Easy Ceiling program is used to import and export a texture file (stretch ceilings), for example "factura.fact", it contains text data in UTF-16LE encoding, and also in UNIX. here is a piece:

false
0
1256
Перламутр 305
320
0.08
0.08
0
0
КНР
false
1
305
16777215
False


How in 1C from the reference book of materials through a text variable (or in other ways) to enter line by line into the ".fact" file and save it in UNIX UTF-16LE?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
ViktorGuerro, 2020-03-26
@ViktorGuerro

Stream = New FileStream("F:\Users\admin\Desktop\Factura.fact",FileOpenMode.Create);
TextDocument=New TextDocument;
TextDocument.AddLine("123");
TextDocument.Write(Stream,"UTF-16LE",Symbols.PS,False);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question