I've read the following thread and I was able to make a conversion script (based on C#) that converts all my charset=NONE
databases to charset=UTF8
and most of it works great (I still have a few special cases where characters are converted to weird symbols, but that's marginal).
My issue is that I have lots of backup database files (*.fbk
) for which I don't know for sure if this is UTF8
or NONE
. In the ideal world, my code would handle the conversion once the database is restored from file depending on the fbk
file's format, so I only convert when necessary and after restore.
Is this at all possible? Or is there a way to define charset
when restoring the database (either via gback
of via ADO.NET provider)?