hi,
i build some client server application which work with sockets
(System.Net.Soc kets)
and when i m sending data (Hebrew text) from the server to the client and
backward i m getting the text not so well (gibberish or some thing not
readable)
any idea ?
Best Regards ,
Tiraman :-) 3 1044
hi,
i m using this kind of code to send the data
Dim oSWriter As New IO.StreamWriter (client.GetStre am) ' the client is
TcpClient
oSWriter.Write( data & vbCr)
oSWriter.Flush( )
and i m reading the data by doing this
sText = Encoding.ASCII. GetString(readB uffer, 0, BytesRead)
Thanks For your Help.
"David Williams" <Da***********@ discussions.mic rosoft.com> wrote in message
news:D8******** *************** ***********@mic rosoft.com... How are you transfering the text? It sounds like the method that you are
using is not fully Unicode aware, or at least is not using the Unicode
encoding class. HTH -- David Williams, VB.NET MVP
"Tiraman" wrote:
hi,
i build some client server application which work with sockets (System.Net.Soc kets)
and when i m sending data (Hebrew text) from the server to the client
and backward i m getting the text not so well (gibberish or some thing not readable)
any idea ?
Best Regards ,
Tiraman :-)
you might want to try Encoding.Unicod e.GetString(rea dBuffer, 0, BytesRead)
instead of the ASCII version..
imran.
"Tiraman" <ti*****@netvis ion.net.il> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. hi,
i m using this kind of code to send the data
Dim oSWriter As New IO.StreamWriter (client.GetStre am) ' the client is TcpClient oSWriter.Write( data & vbCr) oSWriter.Flush( )
and i m reading the data by doing this
sText = Encoding.ASCII. GetString(readB uffer, 0, BytesRead)
Thanks For your Help.
"David Williams" <Da***********@ discussions.mic rosoft.com> wrote in
message news:D8******** *************** ***********@mic rosoft.com... How are you transfering the text? It sounds like the method that you
are using is not fully Unicode aware, or at least is not using the Unicode encoding class. HTH -- David Williams, VB.NET MVP
"Tiraman" wrote:
hi,
i build some client server application which work with sockets (System.Net.Soc kets)
and when i m sending data (Hebrew text) from the server to the client
and backward i m getting the text not so well (gibberish or some thing not readable)
any idea ?
Best Regards ,
Tiraman :-)
Thanks i will try it.
"Imran Koradia" <no****@microso ft.com> wrote in message
news:#Q******** ******@TK2MSFTN GP12.phx.gbl... you might want to try Encoding.Unicod e.GetString(rea dBuffer, 0, BytesRead) instead of the ASCII version..
imran. "Tiraman" <ti*****@netvis ion.net.il> wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. hi,
i m using this kind of code to send the data
Dim oSWriter As New IO.StreamWriter (client.GetStre am) ' the client is TcpClient oSWriter.Write( data & vbCr) oSWriter.Flush( )
and i m reading the data by doing this
sText = Encoding.ASCII. GetString(readB uffer, 0, BytesRead)
Thanks For your Help.
"David Williams" <Da***********@ discussions.mic rosoft.com> wrote in message news:D8******** *************** ***********@mic rosoft.com... How are you transfering the text? It sounds like the method that you are using is not fully Unicode aware, or at least is not using the Unicode encoding class. HTH -- David Williams, VB.NET MVP
"Tiraman" wrote:
> hi, > > i build some client server application which work with sockets > (System.Net.Soc kets) > > and when i m sending data (Hebrew text) from the server to the
client and > backward i m getting the text not so well (gibberish or some thing
not > readable) > > any idea ? > > Best Regards , > > Tiraman :-) > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lorenzo |
last post by:
hi you all,
first of all apologies for having cross-posted this message but really
i did not know where to post it. please let me know what ng you
consider the most suitable for the described issue.
i wrote a program made by a client and a server that communicate via
RMI
premise 1) everything has been developed and executed on WinXP
Professional and the following jre
|
by: Kingdom |
last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off
- type B I have 12 off etc.
I'm using
Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM
Parts_Table")
to populate a drop down but would like to use several drop downs
restricting the contents of each drop down to the records pertaining to one
|
by: Frank Hauptlorenz |
last post by:
Hello Out there!
I have a DB2 V7.2 Database (Fix11) on Win 2000 Professional. It was before a
NT 4 based Domain -
now it is a Win 2000 Domain. The database server is a domain member. Now
sometimes Win 2000 Clients
can't connect to the database. They connect over TCP/IP. The db2log says
that the function getHostByName
failed. It seems to be only on new installed win 2000 Workstations. Already
installed WS have NOT this problem.
|
by: Jm |
last post by:
I'm trying to set up ASP.NET on my Windows 2000 server w/ IIS 5 and MS ISA
Server. Here's what I have done so far without any luck.
Here's the results from the pages I've created
www.jmconsultingllc.com/myfirstcustompage.aspx and
www.jmconsultingllc.com/newfile.aspx
Okay, I went into dos, and in the v1.1.4322, entered
aspnet_regiis and then realized I forgot the parameter of -
c, so I did aspnet-regiis -c and it said:
btw, the -c...
|
by: Mahesh Devjibhai Dhola |
last post by:
Hi,
I want to develop p2p (peer-to-peer) communication connection for chat in
..Net (Lang: c# - preferable)
NOTE: if two LAN are behind their own router then also it should work as
yahoo, msn messenger works.
Let me explain scenario:
In yahoo:
- We login to yahoo server from yahoo messenger (yahoo server listens at
| |
by: pamelafluente |
last post by:
I am beginning aspNet, I know well win apps.
Need a simple and schematic code example to start work.
This is what I need to accomplish:
----------------------
Given button and a TextBox on a web form when one presses the button on
the web form on a client pc, the sql query which is contained in the
text box is sent to a vb net application on a server pc. The win
application sends the query to the database, collects the results,
|
by: pamelafluente |
last post by:
I am still working with no success on that client/server
problem. I need your help. I will submit simplified versions
of my problem so we can see clearly what is going on.
My model:
A client uses IE to talk with a server.
The user on the client (IE) sees an ASP net page containing
a TextBox. He can write some text in this text box and
push a submit button.
|
by: Timothy.Rybak |
last post by:
Hello all,
This is my first attempt at an application, so kid gloves are
appreciated.
I need to make a very simple form that only has a few elements. One is
TraceCode - a text field that is populated when a user scans a label.
The other is ScanDate - a date/time field that should equal the
date/time of the scan (e.g. 7/31/2006 5:00:00 AM).
|
by: smerf |
last post by:
I have searched high and low (and even in some places I'd like to forget I
ever saw) for the information that will tell me exactly how the Nat2Nat
server for UltraVNC works (not just a vague diagram, but the code needed -
at least psuedocode - to connect the 2 clients) . (You can see it at
http://www.uvnc.com/addons/nat2nat.html.)
I get the diagram and all, but how exactly would you get 2 UDP connections
to your UDP server to start...
|
by: zaina |
last post by:
hi everybody
i am nwebie in this forum but i think it is useful for me and the member are helpful
my project is about connecting client with the server to start exchanging messages between them.
to be more clear we process this purpose we serve this to the student in the university. how??
student will send a message that contains his name,id and request by format the server want such as zaina-20024008-grade.
the grade is the request...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |