luads / php-xbase

A simple parser for *.dbf files using PHP
MIT License
184 stars 84 forks source link

language not supported #100

Closed support-softya closed 3 years ago

support-softya commented 3 years ago

hi im trying to get data everything is working fine with this code

   while ($record = $table->nextRecord()) {

        echo $record->desc;
        echo "<br />";
    }

but the result gonna be like this .. https://i.ibb.co/QHQYSLk/Capture.png

any help here thanks

gam6itko commented 3 years ago

@support-softya Did you set correct file encoding?

// example since 1.3.2
$table = new Table(
    __DIR__.'/Resources/foxpro/1.dbf', 
    [
        'encoding' => 'cp852'
    ]
);
support-softya commented 3 years ago

thanks its working now ..