You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i am trying to read elements from a table and for some of them (they are in french) i receive Utf8Error.
Is there a way of reading in Utf-16 encoding instead of Utf-8?
` let mut buffers = TextRowSet::for_cursor(BATCH_SIZE, &mut cursor, Some(4096))?;
let mut row_set_cursor = cursor.bind_buffer(&mut buffers)?;
while let Some(batch) = row_set_cursor.fetch()? {
// Within a batch, iterate over every row
for row_index in 0..batch.num_rows() {
// Within a row iterate over every column
let record = (0..batch.num_cols()).map(|col_index| {
batch
.at_as_str(col_index, row_index)
.unwrap_or_else(|x| {
println!("{:?}", x);
Some("")
})
});
}
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i am trying to read elements from a table and for some of them (they are in french) i receive Utf8Error.
Is there a way of reading in Utf-16 encoding instead of Utf-8?
` let mut buffers = TextRowSet::for_cursor(BATCH_SIZE, &mut cursor, Some(4096))?;
let mut row_set_cursor = cursor.bind_buffer(&mut buffers)?;
`
Beta Was this translation helpful? Give feedback.
All reactions