Console.WriteLine Hebrew

E

Etayki

Hi!

I am trying to print Hebrew characters:

Module Module1

Sub Main()

Console.WriteLine("×יתי")

End Sub

End Module

And the output is:

????

How can I print in Hebrew to the console window?


Question number 2:

I am trying to insert data in Hebrew into my database:

Dim conn As New System.Data.SqlClient.SqlConnection()
conn.ConnectionString = "DataSource=.
\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database2.mdf;Integrated
Security=True;User Instance=True"
conn.Open()
Dim cmd1 As New System.Data.SqlClient.SqlCommand("INSERT
DomainTable (EmailID, Email, Domain) VALUES('2', '×יתי', 'לוז')",
conn)
cmd1.ExecuteNonQuery()


I have configured the Email and Domain field as nvarchar(50) which is
supposed to take care of unicode. However, I am not certain that the
values are stored in the database as Hebrew. Any suggestions on how to
do this?

Thanks in advance,

Etay
 
S

Smokey Grindle

I'm not sure the console can display unicode? When I try to paste a unicode
character into it it also comes up as ?

Hi!

I am trying to print Hebrew characters:

Module Module1

Sub Main()

Console.WriteLine("????")

End Sub

End Module

And the output is:

????

How can I print in Hebrew to the console window?


Question number 2:

I am trying to insert data in Hebrew into my database:

Dim conn As New System.Data.SqlClient.SqlConnection()
conn.ConnectionString = "DataSource=.
\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database2.mdf;Integrated
Security=True;User Instance=True"
conn.Open()
Dim cmd1 As New System.Data.SqlClient.SqlCommand("INSERT
DomainTable (EmailID, Email, Domain) VALUES('2', '????', '???')",
conn)
cmd1.ExecuteNonQuery()


I have configured the Email and Domain field as nvarchar(50) which is
supposed to take care of unicode. However, I am not certain that the
values are stored in the database as Hebrew. Any suggestions on how to
do this?

Thanks in advance,

Etay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top