Special character display in UI - c#

I am writing an application(C#) for a specific Character like science symbol(μo).In Oracle DB store properly.
This application involves using DataAdapter, OLEDB Connection (oracle 11g)and the DataSet. when i am displaying data in UI.
Instead of displaying the correct characters the application displays æo ("æo").
Thanks in advance

Related

Unicode characters in Listview c#

Here is the thing:
I need to display japanese character in listview in a SQL operated database manager I am currently building for a friendly company. Tried to google, but all answers led me to nothing really. Instead of displaying characters it just does "????". Have a look:
but I am loading a properly displayed .csv file from a machine that has a japanese installed on it. Also its been saved as utf8:
Font I am using is Meiryo UI. Tried Tahoma and the same thing is happening. Loading is being done including encoding:
3
And finally here's the code responsible for stuffing the data into a listview:
4
I would really appreciate if someone could help me. Thanks!
You are using a streamreader to open the file, but you are not using that same streamreader to read the data. Instead you are instructing SQL server to open it using the BULK INSERT command. Prior to Sql 2012 SP2, there was no support for UTF-8 in BULK INSERT.
If you are using Sql 2012 SP2 or above, you might consider Tom-K answer here:
How to write UTF-8 characters using bulk insert in SQL Server?
Failing that, you must either convert the file to UTF-16 before doing the bulk insert, or use another method.
I managed to solve this thing. While using SQL Server 2014 I simply forgot to change the collation encoding in database settings. It was set on Latin instead of Japanese-Unicode BIN. Thanks to Ben for pointing me right direction.
Fixed

cannot insert arabic characters into sql DB from inside winform application

I have a winform application that connects to an mdf database, the problem I'm facing is that I cannot insert Arabic characters into the database from the winform application, all the inserted characters are converted into question marks.
But inserting Arabic data directly to the database causes no error and data inserted successfully.
All the columns are defined as nvarchar.
So, could anyone please suggest me where the problem is?
thanks in advance

backup mysql database and convert it to sqlite to use it in c#

my project manager asked me to do the following:
-backup data from mysql database that is on the server
-convert this data to sqlite
-add it to a windows form application that read from this sqlite new database
the target is to keep part of the database always linked to this c# windows application
I've read articles about backup data from mysql using c# and I don't expect to have problems
backup using mysqldump.exe 1
backup using mysqldump.exe 2
backup using mysqldump.exe 3
How can I convert this mysql dump file into sqlite and load the data to the c# using the sqlite memory and then save it so the application will use this sqlite database each time it runs. All of these steps must be done by the c# windows application itself with a button or something similar.
IMO easiest way to do this, and how we do it: export the tables as CSV. Open them in excel. create an insert statement for the first row in the excel sheet using variables for the cells, append that as an extra column. click and drag that down to repeat that statement on every row.
Copy that generated column, and bring it into your sqlite database browser, and run that huge statement.
the statement should look like : ="INSERT INTO newTable VALUES('" &A2&"','" &B2&"');"
don't make it any harder then it should be :P

How to print text field data in report format?

I am developing a simple application using win forms C# in which simple text fields receive data from the user.
Now i want to print that fields data in report format keeping in mind i am not using any database.
How can i do that? if it's too simple then i am sorry, i am just a beginner.
You can use Microsoft Reports. Data source doesn't have to be database, you can use object from your solution.
Useful links:
Object data source
General info

Parsing Data From a File on the server

I have an application on a server and I want it to send a file that can be parsed for the data I am looking for with as little human error as possible.
I am not sure what tags to attach to this it is being coded in C# though.
I was thinking an excel spreadsheet but it can be changed to easily from what I'm told.
What is a vaible way to recieve data to be parsed that can have any format?
Or
What is a way to enter data to get to the network without setting up a program?
Edit:
The server is on a diffrent network than the user wich they cannot directly access.
InfoPath is made for user form data like that.
Excel is another option, but you're right - its difficult to validate user input.
Google Spreadsheet's Forms feature is a nice alternative but getting the data from the spreadsheet afterward could be a pain.

Categories