Question Token Ibragimov · Apr 20, 2021

How to set in cache object script encoding to WINDOWS-1251

Hello!

While creating DBF file ,  I get unreadeable symbols. For example ╠┼╥└╦╦╙╨├╬┬

How set encode to WINDOWS-1251 ? 

This code doesn't help

w $zconvert(fldValue,"O","CP1251")


Thank you!

Comments

Dmitry Maslennikov · Apr 20, 2021

Those are special symbols used to draw UI in textual interfaces and no way to get any readable text from it, it can be translated to the same symbols only, just in the different codepage.

0
Dmitry Maslennikov · Apr 20, 2021

Those symbols in any way do not exist in Windows-1251 at all. You can store it in CP866 or UTF-8 only

0
Marcio Mendes · Nov 11, 2021

Hey @Token Ibragimov 
 

I need to create a DBF file too, can you explain how to create this file?

Are you using a lib? creating from scratch?

Tks

0