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
Smokey Grindle - 18 Apr 2007 16:57 GMT
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