Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting RTL/Arabic Text from sqliteDB using this library flips character #1231

Open
saamerm opened this issue Jun 10, 2024 · 0 comments
Open

Comments

@saamerm
Copy link

saamerm commented Jun 10, 2024

While trying to get RTL text using the library, the string direction is changed from RTL to LTR

This is the output when I use the terminal

% sqlite3 StreamsDb.db
sqlite> select * from StreamTable where room_name = "WeTech2";

image

It works just fine

This Library

Here's the code I tried to use

var x = _db.Query<StreamRow>("select * from StreamTable where room_name = ?", roomName);
System.Console.WriteLine(x[0].Translation);
var y = _db.ExecuteScalar<string>("select translation from StreamTable where room_name = ?", roomName);
System.Console.WriteLine(y);

And the output is as follows for both statements
ﻚﻟﺫ ﻝﺎﻴﺣ ﻞﻌﻔﺘﺳ ﺍﺫﺎﻣ ،ﺎﻨﻫ ﺺﻨﻟﺍ
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant