OgrProvider: initial encoding setting check (fix #8167)
Merge pull request #678 from minorua/ogr_init_enc_chk

OgrProvider: initial encoding setting check (fix #8167)