C
C#β€’14mo ago
turji1560

❔ Inserting Unicode characters into an Oracle database-issue

help please on net core 6 with dapper -When inserting Unicode characters into an Oracle database using Dapper dynamic parameters in a .NET Core 6 API, when the inserted value appears as "ΒΏ" instead of the expected Unicode character like "πŸ˜€" you can see the the code for insert data in the photo attached
4 Replies
n8ta
n8taβ€’14mo ago
Fair warning I know 0 about oracle dbs What is the type of the column you are inserting into? What text encoding is it expecting? When you say the insert value appears as "?" what do you mean, does it appear that way in some db viewer tool or when you read it back from the DB? Does it look okay if you reinterpret the string as the original encoding (i.e. is the db damaging it somehow)?
Accord
Accordβ€’14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
turji1560
turji1560β€’14mo ago
the issue not resolved.. the type of the column in the database is nvarchar so it need to support unicode char, and it saved like this with ? instead "πŸ˜€" in the db when i try to insert with the regular ado for oracle db it works like charm, but when using dapper its saving ? insted of unicode char
Accord
Accordβ€’14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts