Hello,
I’m a newbie in Elixir and I’m trying to build a data application using odbc.
The connection works great
iex(19)> r = DuckDBex.ODBC.query(pid, q)
%{conn: #PID<0.159.0>}
{:selected, ['ville', 'type_carburant', 'cp', 'p'],
[
{[80, 195, 169, 108, 105, 115, 115, 97, 110, 110, 101], 'E10', '13330',
1.535}
]}
iex(20)> to_string [80, 195, 169, 108, 105, 115, 115, 97, 110, 110, 101]
"Pélissanne"
iex(21)> # instead of Pélisanne
iex(22)> to_charlist 'Pélisanne'
[80, 233, 108, 105, 115, 97, 110, 110, 101]
The string returned by odbc doesn’t look in utf-8 (but in database it is utf-8).
How I can solve this issue and what is the encoding value used by odbc ?
Thanks.