Harm, sorry to raise the RO topic here:
https://support.dataaccess.com/Forum...-work&p=364132


But that's not what I'm currently seeing in the ASCII function.


Monthly I receive a file from a Brazilian statistical entity in .DBF format.


Click image for larger version. 

Name:	evidenciafipe.JPG 
Views:	45 
Size:	42.9 KB 
ID:	14859

I adjusted my encoding, to work from the first version of DF20 and today: (20.0.7.152).

In this month's file when reading via Read_Block I have: Hex 93.

When performing the format conversion and executing the Ascii command, I receive as a return: 8220.

Seeing the link, which appears in the manual:
https://unicode-table.com/pt/#0093


Click image for larger version. 

Name:	evidenciahex93.JPG 
Views:	42 
Size:	62.4 KB 
ID:	14858

I think the whole range from 127 to 160 should return an erratic value.


I should be getting the return: 147, as is the value in DF19, contradicting your words.


I tried some variations of commands and was not successful.

My code (summarized) looks like this:

Code:
Integer iVal
String sDb
Address aUTFBuffer


Read_Block channel 1 sDb 1
Get Utf8FromBuffer of oCharTranslate (AddressOf(sDb)) CP_ACP   to aUTFBuffer 
Get Utf8ToStr of oCharTranslate aUTFBuffer CP_UTF8 to sDb
Move (Ascii(sDb))  to iVal

Best Regards,

Edgard